Axis start player under SP MOD

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Franko74
Corporal
Posts: 45
Joined: Sat Jan 03, 2004 12:48 am
Location: Hungary
Contact:

Axis start player under SP MOD

Post 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
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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
Live to map, not map to live.
-mohaa_rox, .map
moderator
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
User avatar
Franko74
Corporal
Posts: 45
Joined: Sat Jan 03, 2004 12:48 am
Location: Hungary
Contact:

Post 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?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Nope, in your map script, should be maps/mymapname.scr.
Image
User avatar
Franko74
Corporal
Posts: 45
Joined: Sat Jan 03, 2004 12:48 am
Location: Hungary
Contact:

Post by Franko74 »

mission accomplished. thx :)
Post Reply