uq_armorspeed
1 Attachment(s)
Speed in armor by BorJomi v1.3 Description:
Player cmd:
Requirements:
Code:
v1.2 - some small fixes |
Re: uq_armorspeed
Just set armorvalue in UpdateClientData pre forward, games will send message for you ;)
|
Re: uq_armorspeed
- g_userconnect is useless here, and its never set to false btw
- velocity[2]-=velocity[2]; just set it to 0.0 - if(flags&FL_ONGROUND && flags&FL_INWATER) -> if( flags & ( FL_ONGROUND | FL_INWATER ) ) (you can define it as const) |
Re: uq_armorspeed
about g_userconnect i forget put it into client_disconnect) about other problem i try to check and do better)
//update plug |
Re: uq_armorspeed
I also had forgotten that this plugin had been submitted before yours and do the same with exactly same code : -Plugin-
But that's not a reason to not improve your code ;) |
Re: uq_armorspeed
Quote:
|
Re: uq_armorspeed
Ok.
I've just checked cstrike modules sources again and ArmorValue message is not send by the native. ArmorType message is still sent for nothing, so you still need to replace cstrike native with armorvalue (you don't even need to round it). |
Re: uq_armorspeed
updated
|
Re: uq_armorspeed
Would be better to declare FL_CHECK as a const, but it doesn't make any significant difference.
Also, flags and speed vars are not needed since they are used only 1 time. End, consider that some plugins (especially on kz servers) put players into spectator team, so Ham_Killed won't be set and your alive variable will hold wrong value, i think it's better to keep is_user_alive native. Approved. |
All times are GMT -4. The time now is 06:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.