Ok, for this i recommend scripting. The "func_" commands should have been removed from CoD engine, as they suck

(along with the deadly CSG's).
So, check out this for now. (looks like Im going to have to make a small scripting tut

)
this is what I posted in another thread, but I have adapted it for your needs...
Map
-Make the brush(s) and the hinge (origin brush).
-Select both and right click. then choose script<Brushmodel
-Press n to open entity window
Add these values
Key - Targetname
Value - <targetname> (This can be anything, but make it easy to remember)
-Save map and compile (No, thats not the end)
Scripting
This will be how your scripting will look, with some help...
//------------------------------------------//
//-------------Main Scripting-------------//
//------------------------------------------//
Code: Select all
Main () //Always start scripting with this
{
thread Spinning_Object; //This will tell the script to run these threads (you can have more than 1)
}
Spinning_Object() //This is the thread called from above
{
Spinner = getent ("<targetname>","targetname"); //This gives the door a script reference
while (1) //This makes the thread repeat when ti gets to the end.
{
Spinner rotateto ((0, 0, 360), 2); // This will make the door rotate 360 degrees on its Z-Axis from its origin (the 2 is seconds)
}
}
Now save that as "<mapname>_script.gsc" and put in the maps/mp folder
And if you havent already done so, you must make the main gsc.
This is pretty simple...
Just copy this format...
Code: Select all
main()
{
ambientPlay("ambient_mp_carentan"); //Background Noise
maps\mp\_load::main();
maps\mp\<mapname>_script::main(); //Loads the script
game["allies"] = "british";
game["axis"] = "german";
game["british_soldiertype"] = "airborne";
game["british_soldiervariation"] = "normal";
game["german_soldiertype"] = "fallschirmjagergrey";
game["german_soldiervariation"] = "normal";
game["attackers"] = "allies";
game["defenders"] = "axis";
}
Now save that as "<mapname>.gsc" and also put in the maps/mp folder
BTW, this is not tested, but its all I can do off the top of my head.