cod4 vents
Moderator: Core Staff
cod4 vents
In first custom cod4 map that i played( name of the map is mp_subway_beta ) there was some kind of vents on the celling. And they were rotating and the light was coming trough from behind. I just want to know how to make this rotating vent. And if i would put lights (like green, blue and other colours) from behind would the light like blink? (hope you know what i mean)

Ok so go into Radiant. Design your vent, or insert the model.
Select the vent and right click it on the 2d grid. Now go all the way down to the Section: Script and Click on BrushModel.
Now press N to bring up the entities and type in the following
Key:targetname
Value:rotatvent1
Done for the mapping part.
In you main gsc file put this code in it..
now create a new gsc file name it rotatvent1.gsc and put this in it.
Pretty much this tutorial, but with the rotating code.
http://codjumper.com/forums/viewtopic.p ... t=platform
I'm not sure if it would blink or not.. maybe if you got the speed just right.. but not sure.
Select the vent and right click it on the 2d grid. Now go all the way down to the Section: Script and Click on BrushModel.
Now press N to bring up the entities and type in the following
Key:targetname
Value:rotatvent1
Done for the mapping part.
In you main gsc file put this code in it..
Code: Select all
maps\mp\rotatvent1::main();
Code: Select all
main()
{
thread rotatvent1();
}
rotatvent1()
{
platform = getent ("rotatvent1","targetname");
while(1)
{
wait(1);
platform rotateyaw ( 360, 10, 0.5, 0.5); //10 is the speed.. if you want to make it faster change it to a lower number.
platform waittill ("rotatedone");
}
}
http://codjumper.com/forums/viewtopic.p ... t=platform
I'm not sure if it would blink or not.. maybe if you got the speed just right.. but not sure.

Who is online
Users browsing this forum: No registered users and 1 guest