AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Custom air accelerate (https://forums.alliedmods.net/showthread.php?t=254209)

HamletEagle 12-31-2014 04:39

Custom air accelerate
 
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 ?

Arkshine 12-31-2014 04:54

Re: Custom air accelerate
 
Quote:

What I understood from the sdk
There is nothing to understand from SDK. It's engine, unrelated. You should say more what you understood from what I said in my last posts.
I'm not sure why you do that, posting like you figured out how works the shit, when you just read a comment about it.
If you want to learn and understand, open IDA and check yourself how works the functions.

Anyway, old code, but probably still valid : https://forums.alliedmods.net/showth...28#post1555428

HamletEagle 12-31-2014 05:37

Re: Custom air accelerate
 
Quote:

Originally Posted by Arkshine (Post 2242603)
There is nothing to understand from SDK. It's engine, unrelated. You should say more what you understood from what I said in my last posts.
I'm not sure why you do that, posting like you figured out how works the shit, when you just read a comment about it.
If you want to learn and understand, open IDA and check yourself how works the functions.

Anyway, old code, but probably still valid : https://forums.alliedmods.net/showth...28#post1555428

Don't you think you exagerated ? Calm down a bit. I don't know anything about c++, about how this shits are named and so on. I have ida and I looked into it. And what's wrong if I look there and what I didn't understand I search on am ? What's the point if it's your post, a one from a random guy, on the wiki or whatever ? If it can give me the info that I need I'm going to read it.
You forgot that not all peoples use ida for years, not all peoples know c++ or other programing languages. For you it's very easy to figure out stuffs, for me it's hard and require like 2-3 hours of looking, searching and testing for confirming a simple information.

In fact, I didn't figured out anything, this is what I have after doing the process described above. Why I'm posting ? Because I need to know if it's right.

Thanks for the code...

Arkshine 12-31-2014 07:05

Re: Custom air accelerate
 
I may not always understand properly english, but I'm not an idiot.
You whole post is basically a copy-paste of what I said in a post some days ago.

Saying "What I understood from the sdk" is quite dishonest as there is nothing to look about engine in SDK.
This is what it bothered me, because you did and understand nothing of that. At this point, you should have linked or quoted the reference/person behind that instead of rearranging sentences to look like you know what you're talking about (that's why I've answered to look at IDA...)

Maybe I'm too much cynical and pessimist toward people, but I've seen an attempt to show people you understood things when you don't, and you know perfectly why I would suspect that (hints: vouch, approver). Maybe I'm overthinking, and I hope I did. Now, you know why I answered that.

And your question feels like you already read some comment about it and probably knows the answer but for some reason you want someone else confirming that. I'm still wondering why you don't try yourself, nor did some more research about it. Actually the whole post bothered me, as it looked weird and doesn't feel right.

HamletEagle 12-31-2014 07:56

Re: Custom air accelerate
 
Now let's try to explain again, because I don't like when peoples undertood me wrong. I saw in one of your post that server cvars are linked to movevar. Then I thought: fine, so I can have this cvars configured per player just by alterning them. Then, I go to wiki on the messages list to see which one deals with airaccelerate and found out that it's SVC_NEWMOVEVARS but still not clear enough to be able to do myself. I have IDA in pc since moths, using it for making signatures, finding linux symbols and so on. Looking at the decompiled output of the function clearified a bit because I saw how everything is connected but again, since my lack of c++ knowledges it's still hard to understand everything from it.
Don't want to look like an idiot but how the hell the decompiled output it's called ? Isn't it a sourcecode ? If so isn't it called "sdk" ?

I don't know what I'm talking about, this is simply what I collected from some sources( mentioned above ) and usually I screw up the informations and create a mess when I try to explain myself such stuffs, this is why I've posted here, because there may be things I missed or I get wrong.

Quote:

Maybe I'm too much cynical and pessimist toward people, but I've seen an attempt to show people you understood things when you don't, and you know perfectly why I would suspect that (hints: vouch, approver).
Then you understood wrong, this wasn't an attemp to show peoples how smart I am, it was an attemp to clarify all this stuffs.

If I wanted to look smart I would create a plugin which I don't fully understand and post it in the submissions with some crap natives.
Yes, I asked you if you want to vouch for me, but I also told you on irc that I want to do that only when I'm ready and I'm not interested into the color nor that it looks good to have a custom rank.

Your last paragraph doesn't need any explanations since I did it above. Well, for you it may not make sense, but for me it makes. You saw that sometimes I choose the wrong code and the wrong class, sometimes I make signatures for the wrong function, because this things are not very clear for me.
Why I didn't tried myself ? Because I asked which of the two possible ways is better, don't want to spend a few days doing in one way and finding after that the other one is better.

I withdrew my application, if it's going to cause so may confusions it's better without it.

Arkshine 12-31-2014 11:10

Re: Custom air accelerate
 
You can say whatever you want, I don't want to argue, I just said in this particular context what I was feeling after reading your post. So, let's say I'm overthinking. Fine by me.

HamletEagle 12-31-2014 11:29

Re: Custom air accelerate
 
I don't want to argue too, huh, this escaladated too much. Let's say it's my fault that I didn't quoted your posts here(anyway, it was by mistake, you can see that I credited you everywhere you helped me).


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

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