VitalOverdose/Short Scripts
These are a set of scripts that were just to short to be giving them their own page. All the scripts listed here are part of the Vitals Pro Mapping Tool's MOD. More info on which can be found here?.
AmphibiousVolume
//----------------------------------------------------------- // AmphibiousVolume.By Vitaloverdose. // A water volume that wont drown players/bots //----------------------------------------------------------- class AmphibiousVolume extends WaterVolume; simulated event touch(Actor Other) { if ((other.isa('pawn')) && (pawn(other).UnderWaterTime< 1000)) { pawn(other).UnderWaterTime = 1000; } super.touch(other); }
UntouchVolume
//----------------------------------------------------------- // UntouchVolume .By Vitaloverdose. // physics volume with added Untouch event //----------------------------------------------------------- class UntouchVolume extends physicsvolume; var() name UntouchEvent; event untouch(Actor Other) { if (other.isa('pawn') { triggerEvent(UntouchEvent,Self,Instigator); } super.Untouch(other); }
Sweavo: do you mean to have super.touch(other) in there? Shouldn't it be super.untouch(other)?
Vitaloverdose thanks.
VariZoomGunner
A stationary gunner with extended zoom options, designed for the excellent map [ONS-Minus-ece] By Biv.
//----------------------------------------------------------- // VariZoomGunner. By Vitaloverdose. // ONSManualGunPawn with mapper setable distance on the zoom. //----------------------------------------------------------- class VariZoomGunner extends ONSManualGunPawn; var() float VariZoom; function AltFire(optional float F) { if (PlayerController(Controller) != None) { bWeaponIsAltFiring = true; PC.ToggleZoomWithMax(VariZoom); } } defaultproperties { VariZoom=0.900000 }
Related
VitalOverdose/BoostingVehicleFactory