• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change Player Score
#1
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.
  Reply
#2
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
OMA
[Image: One_Man_Army_Bag_render_MW2.PNG]
  Reply
#3
(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.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#4
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.
  Reply
#5
Could you show the code? It's a custom thing.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#6
(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]
  Reply
#7
I mean the gun game code.
Or just drop dll here.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply
#8
(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.
  Reply
#9
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;
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Spawning player on Snd Cation 4 3,147 07-11-2021, 05:05
Last Post: Scripto
  Help How to force end game for a player? Ra3shed 4 3,311 10-28-2016, 11:52
Last Post: Rendflex
  Help playing mp player anims zurasaur 5 3,482 09-16-2014, 21:15
Last Post: Yamato
Question Help Gradually move player to a position zurasaur 7 4,188 07-03-2014, 23:34
Last Post: zurasaur
  Help Check for current score/ time camxxcore 10 5,242 05-28-2014, 20:08
Last Post: camxxcore
  Help with Nuke freezing score fathom 2 2,244 05-09-2014, 03:39
Last Post: fathom

Forum Jump:


Users browsing this thread: 1 Guest(s)