Difference between revisions of "CCSPlayer"

From AlliedModders Wiki
Jump to: navigation, search
Line 30: Line 30:
 
**<pre>\x2A\xEC\x0C\xD9\x44\x24\x18\x2A\x2A\x57\x8B\xF9\x88\x44\x24\04\x88\x44\x24\x05\x88\x44\x24\x06\x2A\x2A\x2A\x2A\x2A</pre>
 
**<pre>\x2A\xEC\x0C\xD9\x44\x24\x18\x2A\x2A\x57\x8B\xF9\x88\x44\x24\04\x88\x44\x24\x05\x88\x44\x24\x06\x2A\x2A\x2A\x2A\x2A</pre>
 
** Length: 28
 
** Length: 28
 +
 +
== RoundRespawn ==
 +
* Description: <pre>Respawns a player back to a random spawnpoint.</pre>
 +
* Calling Convention: <cpp>__thiscall</cpp>
 +
* Prototype: <cpp>void CCSPlayer::RoundRespawn(void)</cpp>
 +
 +
* Parameters:
 +
** None.
 +
* Signature:
 +
**<pre>\x56\x8B\xF1\x8B\x06\xFF\x90\xB8\x04\x00\x00\x8B\x86\xE8\x0D\x00\x00\x85\xC0\x74\x0E\x8B\x50\x18\x85\xD2\x74\x07\x8B\x48\x1C\x03\xCE\xFF\xD2</pre>
 +
** Length 35

Revision as of 20:01, 27 September 2008

Disclaimer: The viability of these signatures listed herein are not guaranteed. AlliedModders and wiki contributors are not responsible for any damage or loss caused by the use of these signatures. THESE SIGNATURES ARE PROVIDED 'AS-IS'.

Classname: CCSPlayer
Description: Representation of a Counter-Strike: Source player.
Virtual Table Dump: [1]

Signatures

This section will be devoted to listing signatures for the methods of CCSPlayer.

AddAccount

  • Description:
    Adds money to a player's account.
  • Calling Convention:
    __thiscall
  • Prototype:
    void CCSPlayer::AddAccount(int amount, bool bTrackChange=true)
  • Parameters:
    • amount: The amount to add.
    • bTrackChange: Should the server keep track of this change?
  • Signature:
    • \x56\x2A\x2A\x2A\x2A\x2A\x2A\x8D\x44\x24\x08\x50\x8B\xCE\x2A\x2A\x2A\x2A\x2A\x8B\x06\x85\xC0\x2A\x2A\x8D\x4C\x24\x08
    • Length: 29

Blind

  • Description:
    Blinds a player by turning their screen white.
  • Calling Convention:
    __thiscall
  • Prototype:
    void CCSPlayer::Blind(float a, float b, float c);
  • Parameters:
    • Unknown as of this point. So far, only 255, 255, 255 works.
  • Signature:
    • \x2A\xEC\x0C\xD9\x44\x24\x18\x2A\x2A\x57\x8B\xF9\x88\x44\x24\04\x88\x44\x24\x05\x88\x44\x24\x06\x2A\x2A\x2A\x2A\x2A
    • Length: 28

RoundRespawn

  • Description:
    Respawns a player back to a random spawnpoint.
  • Calling Convention:
    __thiscall
  • Prototype:
    void CCSPlayer::RoundRespawn(void)
  • Parameters:
    • None.
  • Signature:
    • \x56\x8B\xF1\x8B\x06\xFF\x90\xB8\x04\x00\x00\x8B\x86\xE8\x0D\x00\x00\x85\xC0\x74\x0E\x8B\x50\x18\x85\xD2\x74\x07\x8B\x48\x1C\x03\xCE\xFF\xD2
    • Length 35