Raised This Month: $ Target: $400
 0% 

Grenade explosion lighting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 04-09-2023 , 14:32   Grenade explosion lighting
Reply With Quote #1

Hello, im trying to create a lighting for HE grenade explosion, i think im doing this wrong, could someone help?

PHP Code:
#include < amxmodx >
#include < amxmisc >
#include <fakemeta> 

public plugin_init()
{
    
register_plugin("Dynamic Light Grenade Explosion""""");
    
register_event("Explosion""OnGrenadeExplosion""ai");
}

public 
OnGrenadeExplosion(attackerentityweapon)
{
    if (
weapon == CSW_HEGRENADE)
    {
    static 
FloatoriginF[3]
    
pev(entitypev_originoriginF);
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
    
write_byte(TE_EXPLOSION);
    
engfunc(EngFunc_WriteCoordoriginF[0]);
    
engfunc(EngFunc_WriteCoordoriginF[1]);
    
engfunc(EngFunc_WriteCoordoriginF[2]);
    
write_byte(30);
    
write_byte(15);
    
write_byte(0);
    
message_end();
    }

HowToRuski is offline
 



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 01:40.


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