Post: Giving Killstreaks
10-11-2016, 12:52 AM #1
matrixmods
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); So this is something I have been trying to figure out for a while now and I'm not really sure what I would need to do in order to make it fully work.

What I am doing now is using PlayerCmd_giveWeapon and PlayerCmd_setActionSlot to give a killstreak and then assign it the actionslot 4. When I do so with "killstreak_ac130_mp" for example when I click dpad right it brings out the laptop to call in the killstreak but then it doesn't actually call it in.*

When looking into the MW2 GSC files this is the only other thing that happens when they assign a killstreak
    
// shuffle existing killstreaks up a notch
for( i = self.pers["killstreaks"].size; i >= 0; i-- )
self.pers["killstreaks"][i + 1] = self.pers["killstreaks"][i];

self.pers["killstreaks"][0] = spawnStruct();
self.pers["killstreaks"][0].streakName = streakName;
self.pers["killstreaks"][0].earned = isDefined( isEarned ) && isEarned;
self.pers["killstreaks"][0].awardxp = isDefined( awardXp ) && awardXp;
self.pers["killstreaks"][0].owner = owner;
if ( !self.pers["killstreaks"][0].earned )
self.pers["killstreaks"][0].lifeId = -1;
else
self.pers["killstreaks"][0].lifeId = self.pers["deaths"];

// probably obsolete unless we bring back the autoshotty
if ( isdefined( level.killstreakSetupFuncs[ streakName ] ) )
self [[ level.killstreakSetupFuncs[ streakName ] ]]();

if ( isDefined( isEarned ) && isEarned && isDefined( awardXp ) && awardXp )
self notify( "received_earned_killstreak" );


The only thing I would think needs to happen would be to change the self.pers to set the killstreak, but I dont think is there is really a way to do so at the moment. This is where I am getting hung up and was wondering if anyone has gotten this working. I posted this in here rather than the MW2 section because the results should come the same way and more people tend to get things going on MW3 since there is CShark

The following user thanked matrixmods for this useful post:

Shark

The following user groaned matrixmods for this awful post:

VenoxCoding
12-20-2016, 06:27 AM #11
Shark
Retired.
Can confirm, have gotten giving killstreaks working :p

The following 5 users say thank you to Shark for this useful post:

-JM-, DoraTheKiller97, lucasaf01, SyGnUs, VenoxCoding
01-23-2017, 09:46 PM #12
-JM-
Space Ninja
Originally posted by Shark View Post
Can confirm, have gotten giving killstreaks working :p


Through Self.pers?
01-24-2017, 03:38 AM #13
Shark
Retired.
Originally posted by JM
Through Self.pers?


Positive, sir.

The following user thanked Shark for this useful post:

-JM-
01-27-2017, 12:27 PM #14
-JM-
Space Ninja
Originally posted by Shark View Post
Positive, sir.


any pointers how to get the address of self.pers and access it ?
01-28-2017, 02:57 AM #15
Shark
Retired.
Originally posted by JM
any pointers how to get the address of self.pers and access it ?


Yea I posted it somewhere on these forums idk where

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo