| Home Page | Recent Changes | Preferences

VitalOverdose/Short Scripts

UT2004 :: Actor>>Various Short scripts (Package: custom)

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

discusion

Category Custom Class

The Unreal Engine Documentation Site

Wiki Community

Topic Categories

Image Uploads

Random Page

Recent Changes

Offline Wiki

Unreal Engine

Console Commands

Terminology

FAQs

Help Desk

Mapping Topics

Mapping Lessons

UnrealEd Interface

UnrealScript Topics

UnrealScript Lessons

Making Mods

Class Tree

Modeling Topics

Chongqing Page

Log In