Home   Help Search Login Register  

Author Topic: Solution to WW2 mplayer grenades and bombs  (Read 1926 times)

0 Members and 1 Guest are viewing this topic.

HuNtEr-exz

  • Guest
Solution to WW2 mplayer grenades and bombs
« on: 27 Aug 2002, 14:16:04 »
Ok anyone who has tried to make a mplayer map with the ww2 teams weapons find it impossible to make grenades in mplayer... but dont worry i have a solution. but they require a little trick. ok with the ww2 grenades there is a little problem... the ww2 grenades require the player to have the following weapons "BThrow" "Bput". now when a player dies he is stripped of all his weapons including "BThrow" and "Bput". now this means when ever u want to use a grenade it would be like collectiong a clip with no gun. so to do it you need a script which will add these to the player when they respawn (and some ww2 weapons). then add in the script

call the script equip.sqs

_soldier = _this select 0
_class = _this select 1

removeallweapons _soldier

?(_class == "usoff"): goto "usoff"
exit

#usoff
removeallweapons _soldier


_soldier addmagazine "bcar_a"
_soldier addmagazine "bcar_a"
_soldier addmagazine "bcar_a"
_soldier addmagazine "bcar_a"
_soldier addmagazine "bcar_a"
_soldier addmagazine "bcar_a"
_soldier addweapon "bcar"
_soldier addmagazine "BGren_A"
_soldier addmagazine "BGren_a"
_soldier addmagazine "BGren_a"
_soldier addweapon "binocular"
_soldier selectweapon "bcar"
_soldier addweapon "BThrow"
_soldier addweapon "Bput"
_soldier allowfleeing 0
exit

then in the ini of the soldier add

[this,""usoff""] exec ""equip.sqs""

that would be a soldier with 3 grenades and a carbine you can add any calss really by just adding another

?(_class == "usoff"): goto "usoff"

then change the usoff to anything you wan then make the

#usoff

to what you changed it to then below change the weapon config to what u want

PS this script was dont by
HuNtEr (me) iblayney@optushome.com.au and

MOOSE lloydhstephens3@hotmail.com

:gunman::gunman::gunman::gunman::gunman::gunman::gunman::cheers::gunman::gunman::gunman::gunman::gunman::gunman::gunman:


HuNtEr-exz

  • Guest
Re:Solution to WW2 mplayer grenades and bombs
« Reply #1 on: 28 Aug 2002, 09:31:07 »
wait dont put stuff in the ini of the unit cause that will only work while his alive make a trigger instead and put this in it...

[dudesname,""usoff""] exec ""equip.sqs""";

should be better