ItsMods

Full Version: Change Player Score
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any possible way to change the score of a player?
I want to reset the player's score to zero in GunGame for MW3 using InfinityScript (but I think it must be a gsc function).
I searched a lot but didn't find useful information yet.
We don't support IS, so I gve you idea:
search adress first player score (adress1)
after invite frined on servef find her adress (adress2)
after it use formula : adress2-adress1)=ofset
(04-03-2015, 04:27)Dude Wrote: [ -> ]We don't support IS, so I gve you idea:
search adress first player score (adress1)
after invite frined on servef find her adress (adress2)
after it use formula : adress2-adress1)=ofset

Are you f#king stoooopid?

Yes It's GSC stuff, in GSC it looks like just

Code:
self.score = 0;
self.kills = 0;
self.deaths = 0;
self.assists = 0;
.. etc

or

Code:
self.pers["score"] = 0;
... etc

I guess it's same in IS.
Thank You.

This helped me change the score, but in MW3 the gunrank doesn't depend on the player's score as I thought it would be.
So the next thing I need to figure out how to do is how to change the gunrank, but this isn't MW2 related, so I don't want to bug you with this.
Could you show the code? It's a custom thing.
(04-04-2015, 21:41)Nekochan Wrote: [ -> ]Could you show the code? It's a custom thing.

It looks like this (As I mentioned I wrote it in C# for InfinityScript)
Code:
public override void OnPlayerKilled(Entity victim, Entity inflictor, Entity attacker, int damage, string mod, string weapon, Vector3 dir, string hitLoc)
{
    if (mod.Equals("MOD_MELEE") && !weapon.Contains("riotshield"))
    {
        victim.SetField("score", 0);
    }
}

The score gets reset to 0, but not the actual gunrank after respawn-[/code]
I mean the gun game code.
Or just drop dll here.
(04-06-2015, 00:21)Nekochan Wrote: [ -> ]I mean the gun game code.
Or just drop dll here.

Oh, I think you missunderstood me.
I don't want to write my own gungame mod, I just want to modify the existing gungame in MW3.
So this might be kind of the wrong forum section, but I thought I might be getting the best answer in here as this forum section seems more active than MW3's.

So the only way I think I would be able to achieve my goal of changing the gunrank would be a memory hack or changing the gunrank over gsc somehow.
Ohh I got you now, I was thinking that it's custom GunGame dll, I forgot that there's GunGame in MW3.
Here's gun.gsc from MW3, I think it will be super helpful for you:
http://pastebin.com/DqsLTvk3

By the way:
Code:
player.gun_firstSpawn = true;
              
player.gunGameGunIndex = 0;
player.gunGamePrevGunIndex = 0;