AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is it possible to omptimise plugins this way (https://forums.alliedmods.net/showthread.php?t=221133)

avril-lavigne 07-18-2013 10:26

is it possible to omptimise plugins this way
 
I have a few custom guns. ( shotgun,grenade launcher,railgun . etc )
in each plugin I have takedamage/ calculate damage or kill victim

I wonder if possible to make damage calculations from all weapons in one separate plugin using lets say
different damage type like dmg_bullet , dmg_shock .etc to determine what weapon did that.

so each weapon will make unique dmg_ shock/rad/generic and then another plugin will catch that . the point is to use only one takdamage function instead of many in each plugin

avril-lavigne 07-18-2013 13:49

Re: is it possible to omptimise plugins this way
 
lets say you have 10 weapon plugins and in each plugin you are using the same function ham_takedamage

wouldnt it better to use that "takedamage" in ONE plugin and calculate something for all 10 plugins

K1d0x 07-18-2013 14:11

Re: is it possible to omptimise plugins this way
 
You want to get damage from weapons or you want to set damage for weapons?


All times are GMT -4. The time now is 06:22.

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