Page 1 of 1

Give weapons commands?

Posted: Wed Sep 17, 2003 10:22 am
by carlpenn
Using Spearhead how do I Give the UK Paratroopers "British" weapons? when I run the Map they all have M1 Garands which looks out of place.
I have tried using the Default and None option in Radiant and then using the below command in the script:-

Initfriends:

level.friendly1.targetname = Captain_Harris
level.friendly2.targetname = Corporal_Jones
level.friendly3.targetname = Private_Smith
level.friendly4.targetname = Private_Jenkins
level.friendly5.targetname = Private_Johnson
level.friendly6.targetname = Private_Dawson
level.friendly7.targetname = Private_Daniels

level.friendly1.maxhealth = 500
level.friendly1.health = 500
level.friendly2.maxhealth = 500
level.friendly2.health = 500
level.friendly3.maxhealth = 500
level.friendly3.health = 500
level.friendly4.maxhealth = 500
level.friendly4.health = 500
level.friendly5.maxhealth = 500
level.friendly5.health = 500
level.friendly6.maxhealth = 500
level.friendly6.health = 500
level.friendly6.maxhealth = 500
level.friendly6.health = 500


level.friendly1 gun sten
level.friendly2 gun enfield
level.friendly3 gun enfield
level.friendly4 gun sten
level.friendly5 gun sten
level.friendly6 gun enfield
level.friendly7 gun enfield



thread FriendWait

end

But it doesnt work !! I thought it should do as I found it in the PK3 files of Spearhead. Can anyone tell me how to do this as I am sure it is possible.
Any suggestions????????

Posted: Wed Sep 17, 2003 10:36 am
by Angex
I think you have to use the weapon name as listed in its tiki:

level.friendly1 gun "Sten Mark II"
level.friendly2 gun "Lee-Enfield"

Posted: Wed Sep 17, 2003 11:05 am
by carlpenn
Ok I tried it as shown above and it still didnt work.
Is there any other way?

Posted: Wed Sep 17, 2003 5:25 pm
by jv_map
Use the weapon command and supply the name as in global/weapon.scr:

$guy weapon "m1 garand"

I don't know the names for spearhead weapons :(