Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

# tmod.tmodProjectileSpinfusor

00001 00002 00003 00004 00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054

    class tmodProjectileSpinfusor extends EquipmentClasses.ProjectileSpinfusor config(tribesmodSettings);
    /**
    *   Class that will be called every time a spinfusor projectile is spawned.
    *
    *
    *   Time Stamp: 15-04-15 13:37:41
    */

    simulated function PreBeginPlay() {
        /*
        *   PreBeginPlay is called before the projectile is spawned.
        *
        */

        super.PreBeginPlay();
        SaveConfig();
        if(class'as'.default.enableTests){ProjTest();}
    }

    /**
     * Unregistered hit fix. From NRBgone.
    */
    function ProjectileTouch(Actor Other, vector TouchLocation, vector TouchNormal)
    {
           super.ProjectileTouch(Other, TouchLocation, TouchNormal);
    }

    /**
    *   Test function to check projectile lifespan. Note that Input/Output (in this case the use of "log()") is very slow,
    *   so this function should never be used unless for debugging. (Will only be executed if var "enableTests" in main class is true.)
    */
    function ProjTest() {

        local tmodProjectileSpinfusor projectileInstance;
        foreach AllActors(class'tmodProjectileSpinfusor', projectileInstance) {

            log("class'tmodProjectileSpinfusor' Projectile test");
            log(projectileInstance);
            log("proj LifeSpan: ");
            log(projectileInstance.LifeSpan);
        }
        log("***************");
    }

    defaultproperties
    {
        radiusDamageAmt=58.000000
        radiusDamageMomentum=255000.000000
        radiusDamageSize=650.000000
        AccelerationMagtitude=360.000000
        MaxVelocity=0.000000
        LifeSpan=6.000000
    }

Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation
previous class next class | frames no frames

Class file time: po 8.1.2018 22:01:56.000 - Creation time: st 23.5.2018 00:10:47.908 - Created with UnCodeX