Raised This Month: $ Target: $400
 0% 

Custom air accelerate


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-31-2014 , 04:39   Custom air accelerate
Reply With Quote #1

Not a true scripting help question, mostly a confirmation.

1.What I understood from the sdk:
sv_airaccelerate is linked with player movevars and when this cvar is changed engine will check if player movevars are the same as the cvar, and if not it will send a SVC_NEWMOVEVARS message to update them.

2.Then to be able to have custom airaccelerate I need to hook engine functions and block the game from changing itself "airaccelerate" movevar and send a SVC_NEWMOVEVARS with my custom one.

I think I need to write my custom movewar when the player is fully on the server, then to check in SV_SetMoveVars when game try to change them, to block the function which send the message SV_WriteMovevarsToClient and to send my message in SV_QueryMovevarsChanged hooked as post ?
Or just using PM_AirMove will do the trick ?
Is this correct ?
__________________

Last edited by HamletEagle; 12-31-2014 at 04:43.
HamletEagle is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode