Page 1 of 1

Axis start player under SP MOD

Posted: Sat Jan 03, 2004 1:12 am
by Franko74
Hi,

I like to create a single player map, and i want to axis player has been the "start player" (axis=info_player_start).
..Because, I like to make a map, where the axis player will fight through the enemy lines.
(Naturally, the enemy will be the soviet army/allies side/)

So, is it possible? Do i make it?
What can i do?

(sorry about my english knowledge)

F.74

Posted: Sat Jan 03, 2004 4:18 am
by mohaa_rox
even if u place info_axis_start, the Germans will still recognise u as an enemy. to solve this, u have to do a bit of editing...

open up the models/human german_xxx.tik, then go down to the bottom, and u'll see something like:

init
{
server
{
classname Actor
setsize "-16 -16 0" "16 16 92"
german
health 100
weapon "Walter P38"

// Make him mumble but not breathe steam
exec global/breathe.scr 0 1

// Set up the helmet for popping off
// <surface to turn off> <model to spawn> <speed to throw it at> <damage multiplier for helmet shots>
sethelmet "models/gear/german_dakofficercap.tik" 200 4 "officer_hat"
}
}


change "german" under "setsize "-16 -16 0" "16 16 92"" to "american". this will make the german models appear to be friendlies.

as for americans/russians to be enemies, just do the same editing, but just change "american" to "german" instead.

REMEMBER: save ur models as something else, like german_myAI_x.tik


*EDIT: one more thing, to save confusion...

at the bottom of each AI tiki, u'll see a line, for example

/*QUAKED ai_german_afrikacorps_grenadier (1.0 0.5 0.0) (-16 -16 0) (16 16 92)
*/

from afrikacorps gernadier. to allow urself to see ur new models in radiant, change "ai_german_afrikacorps_grenadier", to something like
"ai_MY_german_afrikacorps_grenadier".

so to view ur new friendly german in radiant, right click-->AI-->MY-->german-->afrikacorps-->grenadier


whew! hope this helps

Posted: Sat Jan 03, 2004 10:20 am
by jv_map
It's probably faster to add this to your script just below 'level waittill prespawn':

$player german

Done! :D

Now German AI won't attack you anymore and Allies will.

Posted: Sat Jan 03, 2004 6:51 pm
by Franko74
Thanks, guys :P
So, mohaaa_rox: your answer is correct, thanks.
(it's complicated, but works)

jv_map: sorry, but your stuff hasn't work..
i don't know.. maybe i'm stupid :?
Where i must to plant this script? Into global directory?

Posted: Sat Jan 03, 2004 10:23 pm
by jv_map
Nope, in your map script, should be maps/mymapname.scr.

Posted: Sun Jan 04, 2004 8:50 am
by Franko74
mission accomplished. thx :)