Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 69 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Rotate blades
alfabigo
General Member
Since: Jan 17, 2008
Posts: 51
Last: Jul 11, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Apr. 18, 2008 03:19 am
Hi, Excuse my language. I don't speak English

I've been working on a map about rotation of blades . ( like blades helicopter )


When I try to rotate the blades. why do It move in translation movement instead of rotation.

This happens only with my prefab , not so with models of radiandt , they work well.

My prefab are built at coordinates (0,0,0).-

------------------------------------------
inside my prefab
targetname = rueda2
-----------------
brushmodel
targetname = rueda
------------------------------------------------




Both have the same script
*.GSC

Code:

main()
{
  
	maps\mp\_load::main();
       ...........
.      ........    
	thread move_ruedaz();
	 
	
}
move_ruedaz()
{ 
	thread move_rueda();
	thread move_rueda2();
} 
move_rueda() 
{ 	
	rueda = getent ("rueda","targetname");
	while (1) 
		{		
		rueda rotateYaw (360,10);		
		rueda waittill ("rotatedone");	
 		} 
}
move_rueda2() 
{ 	
	rueda2 = getent ("rueda2","targetname");
	while (1) 
		{		
		rueda2 rotateYaw (360,10);		
		rueda2 waittill ("rotatedone");
	
 		} 
}


what do I need to do to solve this problem ?


i dont know what im doing wrong.

Greetings at all.-

Share |
sleep61
General Member
Since: Sep 16, 2007
Posts: 169
Last: Apr 18, 2008
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Apr. 18, 2008 09:38 am
in the call of duty 2 prefab download section there is a water mill and a windmill which both have rotating structures, perhaps the gsc of either might give you a starting place.
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Friday, Apr. 18, 2008 10:42 am
you need a brush textured with origin as part of the brushmodel, otherwise it will use (0,0,0) as the center and rotate around that
Share |
FiremanPaul
General Member
Since: Nov 6, 2006
Posts: 84
Last: Oct 1, 2009
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Friday, Apr. 18, 2008 03:08 pm
Give this a try: http://www.modsonline.com/Tutorials-read-481.html
Share |
alfabigo
General Member
Since: Jan 17, 2008
Posts: 51
Last: Jul 11, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Apr. 19, 2008 01:41 am
[jumping][jumping][jumping]
Thanks at all .....[jumping]

My great problem was I not knew how make the brushes into the object I wanna to rotate. so my script are well.-

thanks for link of COD4 ( very good ).-

good luck.-[2guns]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»