Remove map waepons

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
fonseca
Private
Posts: 2
Joined: Thu Oct 13, 2005 2:28 pm

Remove map waepons

Post by fonseca »

Hi all
Hope someone can help me whit a script , so i can remove the portble MG42 in Stadt and Berlin
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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
fonseca
Private
Posts: 2
Joined: Thu Oct 13, 2005 2:28 pm

Post by fonseca »

hmm i cant get it to work

removeclass addOn_playerweapon_german_PortableMG42

Does anyone have a other suggestion.
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post 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
Post Reply