begin GameMode if player.GetActorValue Strength >= 8 player.EquipItem WeapMinigun player.modav SpeedMult -50 else player.UnEquipItem WeapMinigun player.modav SpeedMult 50 ShowMessage StrMinigunMsg endif endifend
SCN scriptnameshort doOncebegin GameMode if player.GetActorValue Strength >= 8 if player.getEquipped WeapMinigun == 1 if doOnce == 0 player.modav SpeedMult -50 showMessage strMiniGunMsg set doOnce to 1 endif elseif player.getEquipped WeapMinigun == 0 if doOnce == 1 player.modav SpeedMult 50 set doOnce to 0 endif endif endifEnd
SCN scriptnameshort doOncebegin GameMode if player.GetActorValue Strength >= 8 if player.getEquipped WeapMinigun == 1 if doOnce == 0 player.modav SpeedMult -50 showMessage strMiniGunMsg set doOnce to 1 endif elseif player.getEquipped WeapMinigun == 0 if doOnce == 1 player.modav SpeedMult 50 set doOnce to 0 endif endif endifEnd
short SpeedMultLoweredbegin gamemodeif player.isweaponinlist RepairMinigun ; if the player has any minigun equipped if player.getav strength < 8 ; but he's too weak to be doing that player.unequipitem WeapMinigun player.unequipitem WeapUniqueMS18Minigun elseif SpeedMultLowered == 0 ; if he's strong enough to equip it but he hasn't had his speed multiplier adjusted yet set SpeedMultLowered to 1 player.modav SpeedMult -50 endifelseif SpeedMultLowered ; he's not equipping a minigun but he's been affected by a speed mult change earlier set SpeedMultLowered to 0 player.modav speedmult 50endifend