Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Sentry Gun kill = Player kill
#1
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"]++;
        }
Reply

#2
What are you asking for again .-.?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
Try sentry_minigun_mp case and add:
Code:
attacker.pers["cur_kill_streak"]++;

... or I just don't get what you mean.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
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.
Reply

#5
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"]--; ?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
_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"]++;
        }
Reply

#7
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;
Reply

#8
Problem solved, changed the file _events.gsc
Reply

#9
(11-07-2013, 07:19)Snake Wrote: Problem solved, changed the file _events.gsc

Sorry, we didn't get what you meant. lol.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Player can write Fl0w_.JACKDAN 2 3,333 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  !kill Plugin Hallla 1 2,573 09-07-2013, 22:30
Last Post: axel-le-meilleur
  Help About kill cam Howl3r 3 2,693 08-03-2013, 03:57
Last Post: Howl3r
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 5,817 07-03-2013, 21:58
Last Post: Pozzuh
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 87,721 07-01-2013, 15:12
Last Post: explosivebanana55
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 5,839 06-24-2013, 16:37
Last Post: DidUknowiPwn
  "VEH_LinkCommonChecks: Player already has an owner" - After long games akillj 4 3,566 06-07-2013, 11:38
Last Post: akillj
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,499 06-04-2013, 01:54
Last Post: rotceh_dnih
  Using Cheat Engine with Zombies Single Player kikkawa 3 10,838 06-03-2013, 01:18
Last Post: kikkawa
  [Request] Random player model hillbilly 1 2,735 05-12-2013, 08:30
Last Post: archit

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.