Raised This Month: $41 Target: $400
 10% 

Changing Custom AA [ReAPI]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 01-30-2021 , 13:24   Changing Custom AA [ReAPI]
Reply With Quote #1

Hi guys. I know this thread is already made several times but its not working very well how i tested. Problem is the choke while in air, like some conflict/spam from server side to client side or similar...

I would like to make it to work with ReHLDS, ReAPI, ReGameDLL...

I have tried to hook RG_PM_AirMove_Pre and change player's movevars for airaccelerate to 100.0 and then in PM_AirMove_Post to set it back to 10.0 (as sv_airaccelerate on the server) to 'avoid spam of SVC_NEWMOVEVARS' (credits to: https://dev-cs.ru/threads/12893/post-93102)

But its not working very well...i tried to read all possible explanations/tips about this, maybe this help to someone who would like to participate in this:

1) https://forums.alliedmods.net/showpo...2&postcount=16
2) https://forums.alliedmods.net/showpo...8&postcount=39

I undestood it as it needs SVC_NEWMOVEVARS to be hooked (or maybe: SV_QueryMovevarsChanged_Post()) -> block it -> send manually SVC_NEWMOVEVARS
But i have no idea if it can be hooked with ReAPI

Also this could help, from Arkashine's custom_aa.sma:
Code:
/*
 │  ┌───────────────────────────┐
 │  │  AIR ACCELERATE HANDLING  │
 │  └───────────────────────────┘
 │       → PM_Move()
 │       → PM_AirMove_Pre()
 │       → PM_AirMove_Post()
 │       → PM_AirAccelerate()
 │       → SV_SetMoveVars()
 │       → SV_WriteMovevarsToClient()
 │       → SV_QueryMovevarsChanged_Post()
 │            └ WriteMovevarsToClient()
 │                 ├ checkConnectingClient()
 │                 └ sendNewMoveVars()
 */
Thanks in advance for helping out. Im using last version of ReGameDLL, ReHLDS, ReAPI if that matters
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)
JocAnis is offline
Reply


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 16:10.


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