Page 1 of 1
Remove map waepons
Posted: Thu Oct 13, 2005 2:34 pm
by fonseca
Hi all
Hope someone can help me whit a script , so i can remove the portble MG42 in Stadt and Berlin
Posted: Thu Oct 13, 2005 5:00 pm
by ViPER
try this in your map script above prespawn
Code: Select all
removeclass addOn_playerweapon_german_PortableMG42
or if you want to call it back
Code: Select all
if(getcvar "noPMG42" != "0")
{
removeclass addOn_playerweapon_german_PortableMG42
}
set noPMG42 0
then restart to have it again
Posted: Fri Oct 14, 2005 9:57 am
by fonseca
hmm i cant get it to work
removeclass addOn_playerweapon_german_PortableMG42
Does anyone have a other suggestion.
Posted: Fri Oct 14, 2005 1:14 pm
by bdbodger
Looking at the tik for the portable gun in spearhead it has
classname PortableTurret
so maybe removeclass PortableTurret
addOn_playerweapon_german_PortableMG42 is a tik name not a classname in fact it is not even a tik name just what in in the quaked statement at the bottom of the tik
Posted: Fri Oct 14, 2005 8:48 pm
by ViPER
Your right. I had looked at the bsp - it said classname - addon_playerweaponblablabla
there is also -
CarryableTurret
and for the fixed mgs use -
TurretGun