Hamsandwich Updating
This update is now integrated to the next 1.8.3 version.
LASTEST VERSION CAN BE DOWNLOADED FROM THERE : https://forums.alliedmods.net/showpo...9&postcount=34 Hello dear individuals. To begin, me and Arkshine are fixing the functions in hamsandwich that return a Vector (so they can be executed since the could for hooks is ok). It is fixed in Windows and I'm guessing that in linux it won't need to be fixed because it is done other way. So, we would like to ask if someone can test in Linux to execute with ExecuteHam: at least one of these functions: Code:
Ham_Center Code:
Ham_BodyTarget |
Re: Setting a client's maxspeed permanently and efficiently
Tested and work fine.
|
Re: Setting a client's maxspeed permanently and efficiently
Quote:
The "project" will be at this address: https://github.com/joaquimandrade/Hamsandwich-Update/ If someone is experienced with this of github that is a new world for me (that's why the author is the misterious unknown (as fysiks kindly pointed to me in steam)), I kindly accept suggestions. For now you can check the current advances at https://github.com/joaquimandrade/Ha...pdate/commits/ |
Re: Setting a client's maxspeed permanently and efficiently
1 Attachment(s)
Added so far (after the name there is the return type and arguments, please tell me if you don't understand. This is needed because documentation isn't ready yet):
Added to CS and DOD Code:
Ham_ChangeYaw, float (id,int) Code:
Ham_CS_ResetMaxSpeed void(id) (the one already being used with the trick reported on this thread) Code:
Ham_DOD_Item_SpawnDeploy int (id) Code:
Ham_Center |
Re: Setting a client's maxspeed permanently and efficiently
Here goes a stupid example. When you scream in pain it also shows gibs. Also it shows how you can write more concise and efficient code when more functions are exposed:
PHP Code:
|
Re: Setting a client's maxspeed permanently and efficiently
Edit: (This post was made before this thread was here in "Module Coding")
As my good friend fysiks wisely pointed me, this thread is no place for this. I therefore request, if you don't mind, if you can split the posts related to the hamsandwich update to a new thread in Module Coding with a name related to "Hamsandwich Updating" or something like that. Thanks in advance. |
Re: Hamsandwich Updating
Thanks.
|
Re: Hamsandwich Updating
You forgot to close your comment on line 964 of ham_const.inc FYI.
EDIT: So, I was working with Ham_DOD_Weapon_ZoomIn and Ham_DOD_Weapon_ZoomOut and the latter really screws things up just by hooking it: PHP Code:
|
Re: Hamsandwich Updating
2 Attachment(s)
fysiks, the comment thing is because there are nested comments that are there so one does not forget to update the documentation. It's ok.
Now, to the bug. My guess is that that is failing because I assumed that the function doesn't return a value and it indeed returns. Im gonna attach two versions of the library. One that returns an integer and other that returns a float (by ref). When you use them remove the prefix. Unfortunately I'm not being able to test myself because my windows client isn't able to access my linux server I have to figure out why. Also issue the following command on the console: Code:
ham hooks Code:
Key | Classname | Pre | Post |
Re: Hamsandwich Updating
Dear fysiks, had the chance to test it out and is indeed the return type. It must be set to int so the int_ file I've sent you should work (please test it because I tested on Windows alone but it should be fine). It seems that if you return values higher than 0 it applies an effect on the player (like an effect because you zoomed out). Thanks for detecting that.
|
All times are GMT -4. The time now is 19:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.