ItsMods

Full Version: Sentry Gun kill = Player kill
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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"]++;
        }
What are you asking for again .-.?
Try sentry_minigun_mp case and add:
Code:
attacker.pers["cur_kill_streak"]++;

... or I just don't get what you mean.
Yes, I mean attacker.pers ["cur_kill_streak"] + +;When a player does not kill, and Sentry Gun or helicopter for example, the pers ["cur_kill_streak" u not added.

I need that would be considered a series and from them.
Oh, it was somewhere in _damage.gsc... or _callback.gsc
Code:
self.killstreak_SOMETHING
Could you upload the _damage.gsc here please?

Why not just add this to sentry_minigun?
Code:
attacker.pers["cur_kill_streak"]--; ?
_gamage.gsc

I tried to do so, but it does not work.
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;
                case "sentry_minigun_mp":
                    attacker.pers["cur_kill_streak"]++;
                    break;
                default:
                    attacker.pers["cur_kill_streak"]++;
                    break;
            }
        }
        else
        {
            attacker.pers["cur_kill_streak"]++;
        }
I dont understand you, but try to remove this in that last code you pasted:

Code:
case "sentry_minigun_mp":
                    attacker.pers["cur_kill_streak"]++;
                    break;
Problem solved, changed the file _events.gsc
(11-07-2013, 07:19)Snake Wrote: [ -> ]Problem solved, changed the file _events.gsc

Sorry, we didn't get what you meant. lol.