Raised This Month: $51 Target: $400
 12% 

Long grenades v1.3


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-21-2019 , 13:44   Re: Long grenades v1.2
Reply With Quote #21

Your min_speed function is weird and even if it made sense I doubt your regular server owner would know what values to put there.

Looking at the smokegrenade logic, I see the only condition for it to explode if it's the smokegrenade is on the ground, no speed check. Also when the smokegrenade hits the ground the velocity is set to 95% of the current velocity.
https://github.com/s1lentq/ReGameDLL...enade.cpp#L791
(line 801 and line 816)

If you want to mimic the sg functionality that's what you should do. Reduce velocity when the nade is on ground and prevent explosion until the nade hits the ground.
If you stil want a speed check, why don't you check speed directly(sqrt of velocity[0]^2 + velocity[1]^2 + velocity[2]^2)?
__________________
HamletEagle is offline
 



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 07:19.


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