11-05-2013, 18:21
Hi all,
What do I need to change in _damage.gsc, to murder Sentry Gun and other Killstreaks equated to Kill a player?
It's due to the pers ["cur_kill_streak"]?
Here is part of the _damage.gsc
What do I need to change in _damage.gsc, to murder Sentry Gun and other Killstreaks equated to Kill a player?
It's due to the pers ["cur_kill_streak"]?
Here is part of the _damage.gsc
Code:
if ( isDefined( level.killStreakSpecialCaseWeapons[sWeapon] ) ) // this is an optimization
{
switch ( sWeapon )
{
case "ac130_105mm_mp":
case "ac130_40mm_mp":
case "ac130_25mm_mp":
if ( attacker.ac130LifeId == attacker.pers["deaths"] )
attacker.pers["cur_kill_streak"]++;
break;
case "cobra_player_minigun_mp":
case "weapon_cobra_mk19_mp":
if ( attacker.heliRideLifeId == attacker.pers["deaths"] )
attacker.pers["cur_kill_streak"]++;
break;
case "cobra_20mm_mp":
case "artillery_mp":
case "stealth_bomb_mp":
case "remotemissile_projectile_mp":
case "sentry_minigun_mp":
case "harrier_20mm_mp":
case "pavelow_minigun_mp":
if ( isDefined( eInflictor ) && isDefined( eInflictor.lifeId ) )
killstreakLifeId = eInflictor.lifeId;
else
killstreakLifeId = attacker.lifeId;
if ( killstreakLifeId == attacker.pers["deaths"] )
attacker.pers["cur_kill_streak"]++;
break;
default:
attacker.pers["cur_kill_streak"]++;
break;
}
}
else
{
attacker.pers["cur_kill_streak"]++;
}