Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 |
class tmodProjectileSniperRifle extends EquipmentClasses.ProjectileSniperRifle config(tribesmodSettings); var config int sniperSensorDmg; // removes ability of light armour with speed pack to take out Sensor var config int sniperDamage; var config float headModifier; var config float backModifier; var config float vehicleModifier; function ProjectileTouch(Actor Other, vector TouchLocation, vector TouchNormal) { if(BaseObjectClasses.BaseSensor(Other) != None) { damageAmt = sniperSensorDmg; } super.ProjectileTouch(Other, TouchLocation, TouchNormal); } function PreBeginPlay() { super.PreBeginPlay(); class'tribesmod.tmodSniperProjectileDamageType'.default.headDamageModifier = headModifier; class'tribesmod.tmodSniperProjectileDamageType'.default.backDamageModifier = backModifier; class'tribesmod.tmodSniperProjectileDamageType'.default.vehicleDamageModifier = vehicleModifier; SaveConfig(); } defaultproperties { sniperDamage=50 sniperSensorDmg=0 headModifier=1.400000 backModifier=1.000000 vehicleModifier=1.000000 damageAmt=50.000000 damageTypeClass=Class'tmodSniperProjectileDamageType' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |