Advertisement
BaSs_HaXoR

[Ghosts] [1.16] GSC functions codes list

Mar 9th, 2015
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.20 KB | None | 0 0
  1. // [1.16] GSC functions codes list
  2. // Ok so since I released how to call raw gsc functions, I thought, why not a gsc codes list?
  3. /* ################################################################################################################### */
  4. /*                                              OP: http://adf.ly/19D32W                                               */
  5. /* ################################################################################################################### */
  6. /*                                                  Credits: Ethernet                                                  */
  7. /* ################################################################################################################### */
  8. // GScr_Earthquake:
  9. void GScr_Earthquake(float scale, float duration, float* source, float radius){
  10. Scr_AddFloat(radius);
  11. Scr_AddVector(source);
  12. Scr_AddFloat(duration);
  13. Scr_AddFloat(scale);
  14. Scr_SetParameters(4); //See how I set the parameter number after I finish calling the Scr_Adds?
  15. ((void(*)())&ParseAddr(0x268B60))(); //Call the actual function
  16. //((void(*)(int))&ParseAddr(0x268B60))(ClientID << 16); //Only call this one if the one above doesn't work.
  17. }
  18. // Scr_BulletTrace:
  19. /* ################################################################################################################### */
  20. void Scr_BulletTrace(int Client, float* Start, float* End, int Hitchars, int IgnoreEnt){
  21.      Scr_AddInt(IgnoreEnt);
  22.      Scr_AddInt(Hitchars);
  23.      Scr_AddVector(End);
  24.      Scr_AddVector(Start);
  25.      Scr_SetParameters(4);
  26.      ((void(*)(int))&ParseAddr(0x26D0A0))(ClientID << 16);
  27. }
  28. // Scr_PlayFX:
  29. /* ################################################################################################################### */
  30. void Scr_PlayFX(const char* EffectId, float* Position, float* Forward = 0, float* Up = 0){
  31.      Scr_AddVector(Up);
  32.      Scr_AddVector(Forward);
  33.      Scr_AddVector(Position);
  34.      Scr_AddInt(((int(*)(const char*))&ParseAddr(0x324D0))(EffectId));
  35.      Scr_SetParameters(4);
  36.      ((void(*)())&ParseAddr(0x2732D4))();
  37. }
  38. /* ################################################################################################################### */
  39. //BaSs_HaXoR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement