Author |
Topic: [Tutorial] Flak88 in Single Player |
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
Category: CoD2 SP Mapping Posted: Tuesday, Sep. 12, 2006 01:35 am |
|
By rkm11
Ok, after a little script reading and some info from Kc, I have finally created a manned working flak88 in CoD2 SP.
1. First we need to create a script_vehicle. Now, you can give it one of two models
key: model
value:
"xmodel/german_artillery_flak88"
or
"xmodel/german_artillery_flak88_nm"
Also, give it these keys and values.
"script_flak88" "1"
"script_flaktype" "tank"
"script_shootai" "1" (if you want them to shoot AI, this includes the player)
"script_shoottanks" "1" (if you want it to shoot tanks)
"script_team" "axis"
"vehicletype" "flak88"
2. Now for the Actors. The flak88's can run with just one person, I believe. The normal amound is 5. These can be any AI, as long as they are german. I have only tested with 5. Give them each this key and value:
"script_flak88" "1"
Now, check spawner and forcespawn on each of them. Once they are laid near the flak88, simply select the flak88 and then the actor and press W. This will autoconnect them. Do this for every AI, except make sure you connect THE FLAK88 TO THE AI!!!
3. Trigger. Now, make a Trigger multiple, texture it with trigger, and give it this.
"script_flak88" "1"
You should NOT connect the trigger to the flak gun. Just this alone will trigger the guys to spawn and jump on the gun.
4. Script. This is the easy part...
You got to add this line before the load::main();
maps\_flak88::main("xmodel/german_artillery_flak88_nm");
I'm using the model xmodel/german_artillery_flak88_nm, but the other option is xmodel/german_artillery_flak88
main()
{
maps\_flak88::main("xmodel/german_artillery_flak88_nm");
maps\_load::main();
level.player takeallweapons ();
level.player giveWeapon("m1garand");
level.player giveWeapon("thompson");
level.player giveWeapon("fraggrenade");
level.player giveWeapon("smoke_grenade_american");
}
And there you have it.
***********************************
Can someone test this for me? I'm too lazy to make sure I didn't miss something small :P
Ryan |
|
|
|
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
Category: CoD2 SP Mapping Posted: Tuesday, Sep. 12, 2006 09:52 pm |
|
Updated spelling mistake...
*************************
How to make a Flak88 in Single Player
By rkm11
Ok, after a little script reading and some info from Kc, I have finally created a manned working flak88 in CoD2 SP.
1. First we need to create a script_vehicle. Now, you can give it one of two models
key: model
value:
"xmodel/german_artillery_flak88"
or
"xmodel/german_artillery_flak88_nm"
Also, give it these keys and values.
"script_flak88" "1"
"script_flaktype" "tank"
"script_shootai" "1" (if you want them to shoot AI, this includes the player)
"script_shoottanks" "1" (if you want it to shoot tanks)
"script_team" "axis"
"vehicletype" "flak88"
2. Now for the Actors. The flak88's can run with just one person, I believe. The normal around is 5. These can be any AI, as long as they are german. I have only tested with 5. Give them each this key and value:
"script_flak88" "1"
Now, check spawner and forcespawn on each of them. Once they are laid near the flak88, simply select the flak88 and then the actor and press W. This will autoconnect them. Do this for every AI, except make sure you connect THE FLAK88 TO THE AI!!!
3. Trigger. Now, make a Trigger multiple, texture it with trigger, and give it this.
"script_flak88" "1"
You should NOT connect the trigger to the flak gun. Just this alone will trigger the guys to spawn and jump on the gun.
4. Script. This is the easy part...
You got to add this line before the load::main();
maps\_flak88::main("xmodel/german_artillery_flak88_nm");
I'm using the model xmodel/german_artillery_flak88_nm, but the other option is xmodel/german_artillery_flak88
main()
{
maps\_flak88::main("xmodel/german_artillery_flak88_nm");
maps\_load::main();
level.player takeallweapons ();
level.player giveWeapon("m1garand");
level.player giveWeapon("thompson");
level.player giveWeapon("fraggrenade");
level.player giveWeapon("smoke_grenade_american");
}
And there you have it. |
|
|
|
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
|
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
|
All-Killer |
|
General Member Since: May 26, 2006 Posts: 140 Last: Nov 23, 2008 [view latest posts] |
|
|
|
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
|
All-Killer |
|
General Member Since: May 26, 2006 Posts: 140 Last: Nov 23, 2008 [view latest posts] |
|
|
|
rkm11 |
|
General Member Since: Jan 26, 2005 Posts: 196 Last: Aug 21, 2010 [view latest posts] |
|
|
|
Snake-nl |
|
General Member Since: May 30, 2004 Posts: 394 Last: Jan 23, 2011 [view latest posts] |
|
|
|
All-Killer |
|
General Member Since: May 26, 2006 Posts: 140 Last: Nov 23, 2008 [view latest posts] |
|
|
|