[HL] Weapon Spawn Effects
2 Attachment(s)
Description: Just see head image. Plugin makes glow effect on place of pickuped weapon and remove it when this weapon respawns. This effect you can see in the Half-Life Mod - Scientist Slaughterhouse.Cvars: ws_render <0..5> [1] - render type |
Re: [HL] Weapon Spawn Effects
Nice job
|
Re: [HL] Weapon Spawn Effects
1.Use charsmax() everywhere to get a string array size, don't hardcode it.
2.In fw_Respawn:
3.In fw_Think check if the entity is valid. 4.In get_rendercolor, instead of float(random_num(10,255)) use random_float(10.0,255.0). s[3][6] should be declared in else{ }. 5.Destroy the trie in plugin_end. Even if AMXX should free all handles automatically, it may fail. Also, it is good practice to clean what you used. |
Re: [HL] Weapon Spawn Effects
Spoiler
|
Re: [HL] Weapon Spawn Effects
Updated. Rewritted to engine module.
Still no support for weaponmod :p Quote:
|
Re: [HL] Weapon Spawn Effects
Quote:
In fw_Respawn and fw_Think I don't see that you checked if entity is valid. Also this: 4.In get_rendercolor, s[3][6] should be declared in else{ }. Else it looks okay. So waiting to fix this minor things. |
Re: [HL] Weapon Spawn Effects
I never said It could fail. 1.8.2/trie, due to design, you can waste memory. Not a big deal. For this kind of API, this is just a good practice/safer to free memory in the plugin as soon you don't need the handle anymore.
|
Re: [HL] Weapon Spawn Effects
Updated.
Quote:
Code:
|
Re: [HL] Weapon Spawn Effects
Looks ok. Approved.
|
All times are GMT -4. The time now is 03:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.