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

# tmod.tmodProjectileMortar

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
00067
00068
00069
00070
00071
00072
00073
00074

    class tmodProjectileMortar extends EquipmentClasses.ProjectileMortar config(tribesmodSettings);
    /**
    *   Time Stamp: 15-04-15 13:37:01
    */

    //projectile
    var config float damage;
    var config float projLifeSpan;
    var config float knockback;
    var config float damageAOE;
    var config float projFuseTimer;
    var config float projGravityScale;
    var config float projMass;
    //Weapon
    var config float MortarPIVF;
    var config float MortarProjectileVelocity;
    var config int MortarAmmoUsage;

    simulated function PreBeginPlay() {

        super.PreBeginPlay();
        SaveConfig();
    }

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

    /**
     * Projectile catapult bounce server crash fix. From franga_v1.
    */
    simulated function bool projectileTouchProcessing(Actor Other, vector TouchLocation, vector TouchNormal)
    {
        if (Other.IsA('BaseCatapult'))
            return false;

        if (Other.IsA('DeployedCatapult'))
            return false;

        return true;
        super.projectileTouchProcessing(Other, TouchLocation, TouchNormal);
    }

    simulated function SetProperties() {

        class'tmodProjectileMortar'.default.radiusDamageAmt = damage;
        class'tmodProjectileMortar'.default.radiusDamageMomentum = knockback;
        class'tmodProjectileMortar'.default.radiusDamageSize = damageAOE;
        class'tmodProjectileMortar'.default.FuseTimer = projFuseTimer;
        class'tmodProjectileMortar'.default.LifeSpan = projLifeSpan;
        class'tmodProjectileMortar'.default.GravityScale = projGravityScale;
        class'tmodProjectileMortar'.default.Mass = projMass;
    }

    defaultproperties
    {
        damage=120.000000
        damageAOE=1400.000000
        knockback=290000.000000
        projFuseTimer=1.350000
        projLifeSpan=11.000000
        projGravityScale=1.200000
        projMass=100.000000

        MortarPIVF=0.400000
        MortarProjectileVelocity=5450.000000
        MortarAmmoUsage=1
    }

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