View Single Post
Jerrith
Junior Member
Join Date: Jun 2009
Old 06-17-2009 , 23:31   Re: L4D Hidden CVars
Reply With Quote #49

Got two more useful ones...

Code:
    StartPrepSDKCall(SDKCall_Player);
    //PrepSDKCall_SetSignature(SDKLibrary_Server, "@_ZN13CTerrorPlayer17GiveRandomUpgradeEv", 0);
    PrepSDKCall_SetSignature(SDKLibrary_Server, "\x83\xEC\x18\xA1****\x56\x33\xF6\x39\x70\x30\x89***\x0F*****\x53\x55\x57\x33\xED\x33\xDB\x33\xFF", 33);
    GiveRandomUpgrade = EndPrepSDKCall();

    StartPrepSDKCall(SDKCall_Player);
    //PrepSDKCall_SetSignature(SDKLibrary_Server, "@_ZN13CTerrorPlayer13RemoveUpgradeE19SurvivorUpgradeType", 0);
    PrepSDKCall_SetSignature(SDKLibrary_Server, "\x51\x53\x55\x8B***\x8B\xD9\x56\x8B\xCD\x83\xE1\x1F\xBE\x01\x00\x00\x00\x57\xD3\xE6\x8B\xFD\xC1\xFF\x05\x89***", 32);
    PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_ByValue);
    RemoveUpgrade = EndPrepSDKCall();
RemoveUpgrade and GiveRandomUpgrade. The second wasn't in the .sp to begin with, I found it while looking for RemoveUpgrade, and thought it was useful enough to share. It gives the player one upgrade they don't already have (and does nothing if they have them all). Hope this is useful.
Jerrith is offline