Grenade Glow
How do I make grenades glow for SvenCoop?
|
Re: Grenade Glow
You can hook FM_SetModel and test if the entity is having its model set to a grenade. If so, set the entity's effects that way.
For Example: Code:
|
Re: Grenade Glow
Your Example, is giving my errors when I compile it.
|
Re: Grenade Glow
Well post them.
Make sure you include above the very first line the regular includes #include <amxmodx> #include <amxmisc> |
Re: Grenade Glow
PHP Code:
Code:
Welcome to the AMX Mod X 1.76-300 Compiler. |
Re: Grenade Glow
Dear god I for got a Squiggly thing! On the public hook_SetModel_post line, add a { at the end
|
Re: Grenade Glow
Lol...
PHP Code:
|
Re: Grenade Glow
No, Nican...use global const's for strings. Read about optimization.
I wrote the original thing in a rush -- forgot the [] for the global const too. Check up top it's fixed in my original thread. |
Re: Grenade Glow
Quote:
|
Re: Grenade Glow
http://wiki.amxmodx.org/Optimizing_P...tant_variables
Pretty useful page. Really should pay more attention to it myself |
| All times are GMT -4. The time now is 06:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.