what about optimizing it?lol
it this posible with an array or something better?i it is ham_takedamage..
PHP Code:
|
Re: what about optimizing it?lol
PHP Code:
PHP Code:
I'm not 100% on this but I think I've seen optimizations like this before. You could do something similar with weapon damage factor. |
Re: what about optimizing it?lol
Code:
switch (g_level[attacker])PHP Code:
Edit: Okay I see that the numbs are little different, but is it a mistake? |
Re: what about optimizing it?lol
Quote:
|
Re: what about optimizing it?lol
so what should i use?what about the weapons?
|
Re: what about optimizing it?lol
You need to align the values in the array consistent with weapon index. This way you can pass the weapon index into the array and get the value for that weapon. Weapon_Multiplier[iWeapID]
PHP Code:
#define CSW_P228 1 #define CSW_SCOUT 3 #define CSW_HEGRENADE 4 #define CSW_XM1014 5 #define CSW_C4 6 #define CSW_MAC10 7 #define CSW_AUG 8 #define CSW_SMOKEGRENADE 9 #define CSW_ELITE 10 #define CSW_FIVESEVEN 11 #define CSW_UMP45 12 #define CSW_SG550 13 #define CSW_GALI 14 #define CSW_GALIL 14 #define CSW_FAMAS 15 #define CSW_USP 16 #define CSW_GLOCK18 17 #define CSW_AWP 18 #define CSW_MP5NAVY 19 #define CSW_M249 20 #define CSW_M3 21 #define CSW_M4A1 22 #define CSW_TMP 23 #define CSW_G3SG1 24 #define CSW_FLASHBANG 25 #define CSW_DEAGLE 26 #define CSW_SG552 27 #define CSW_AK47 28 #define CSW_KNIFE 29 #define CSW_P90 30 #define CSW_VEST 31 #define CSW_VESTHELM 32 |
Re: what about optimizing it?lol
Quote:
|
Re: what about optimizing it?lol
Quote:
no, they werent consistent, but dont worry, it isnt very important. so, lets supose the numbers ARE consistents, wich method sould i use? your or his? |
Re: what about optimizing it?lol
both method are fine for me. I'd prefer fysiks one.
|
Re: what about optimizing it?lol
okay ;)
|
| All times are GMT -4. The time now is 01:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.