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

# tmod.tmodProjectileChaingun

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
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066

    class tmodProjectileChaingun extends EquipmentClasses.ProjectileChaingun config(tribesmodSettings);
    /**
    *   Time Stamp: 15-04-15 13:37:10
    */

    //projectile
    var config float damage;
    var config float projLifeSpan;
    //weapon
    var config float projectileVelocity;
    var config float projectileInheritedVelFactor;
    var config float roundsPerSecond;
    var config float spinPeriod;
    var config float speedCooldownFactor;
    var config float heatPeriod;
    var config float maxSpread;
    var config float minSpread;

    simulated function PreBeginPlay() {

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

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

    simulated function SetProperties() {

        class'tmodProjectileChaingun'.default.damageAmt = damage;
        class'tmodProjectileChaingun'.default.LifeSpan = projLifeSpan;
    }

    function ProjTest() {

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

            log("class'tmodProjectileChaingun' Projectile test");
            log(projectileInstance);
            log("proj damage: ");
            log(projectileInstance.damageAmt);
        }
        log("***************");
    }

    defaultproperties
    {
        damage=4.000000
        lifeSpan=1.100000

        projectileVelocity=32000.000000
        projectileInheritedVelFactor=1.000000
        roundsPerSecond=7.500000
        spinPeriod=0.050000
        speedCooldownFactor=0.002000
        heatPeriod=7.000000
        maxSpread=2.000000
        minSpread=0.400000
    }

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.853 - Created with UnCodeX