Raised This Month: $ Target: $400
 0% 

Get xyz coords as for RadiusDamage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-19-2015 , 03:33   Re: Get xyz coords as for RadiusDamage
Reply With Quote #1

What's the purpose of
PHP Code:
fOrigin[0] += 5000;
fOrigin[1] += 5000;
fOrigin[2] += 5000
?

Anyway, I've never used RadiusDamage() (radius_damage()), but looking at its code, its implementation is really bad in my opinion.
Code: https://mxr.alliedmods.net/amxmodx/s...engine.cpp#178
So, if you are standing really close to explosion origin (2 * radius multiplier), which does happen if you create an explosion at player's origin, it's going kill that player every time.

The best thing would probably be to create your own function to which you could pass explosion origin, damage and radius, and deal damage based on range. No multipliers involved, just raw values.

Last edited by klippy; 09-19-2015 at 03:33.
klippy is offline
Reply



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 22:11.


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