Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

tmod.tmodProjectileGrenadeLauncher


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
00075
00076
class tmodProjectileGrenadeLauncher extends EquipmentClasses.ProjectileGrenadeLauncher config(tribesmodSettings);
/**
*   Time Stamp: 15-04-15 13:36:53
*/

//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 GrenadeLauncherPIVF;
var config float GrenadeLauncherProjectileVelocity;
var config float GrenadeLauncherAmmoUsage;

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() {
/*
*   Was used to set the desired weapon properties with the ini file. This method did not affect the first projectile though.
*/   
    log("Called Function");
    class'tmodProjectileGrenadeLauncher'.default.radiusDamageAmt = damage;
    class'tmodProjectileGrenadeLauncher'.default.radiusDamageMomentum = knockback;
    class'tmodProjectileGrenadeLauncher'.default.radiusDamageSize = damageAOE;
    class'tmodProjectileGrenadeLauncher'.default.FuseTimer = projFuseTimer;
    class'tmodProjectileGrenadeLauncher'.default.LifeSpan = projLifeSpan;
    class'tmodProjectileGrenadeLauncher'.default.GravityScale = projGravityScale;
    class'tmodProjectileGrenadeLauncher'.default.Mass = projMass;
}
  
defaultproperties
{
    damage=58.000000
    damageAOE=900.000000
    knockback=220000.000000
    projFuseTimer=0.750000
    projLifeSpan=10.000000
    collisionRadius=11.000000
    collisionHeight=11.000000
    projGravityScale=1.200000
    projMass=100.000000
   
    GrenadeLauncherPIVF=0.500000
    GrenadeLauncherProjectileVelocity=4800.000000
    GrenadeLauncherAmmoUsage=1
}

Overview Package Class Source Class tree Glossary
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.865 - Created with UnCodeX