Raised This Month: $51 Target: $400
 12% 

Creating nade scorch (HE & Flashbang)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 02-20-2015 , 16:31   Creating nade scorch (HE & Flashbang)
Reply With Quote #1

Hey, guys! I recently tried to create the scorch of those nades, which appears when the nades explode. So the point to create just the burned area for another effect, and I resulted with this messages after checking in some codes for the purpose and searching the forum. But the problem is, that the scorch doesn't appear. So I'd like to ask if I've missed something about the scorch or if there is a better way of creating it. Here's what I've tried:
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define SCORCH 47

public plugin_init()
{
    
register_plugin("Falsh Scorch Maker""1.0""Flicker")
    
register_clcmd("say /test""cmdMakeScorch")
}

public 
cmdMakeScorch(id)
{
    if(!(
pev(idpev_flags) & FL_ONGROUND))
    {
        
client_print(idprint_chat"You should be on the ground!")
        return
    }
    
    new 
Float:flOrigin[3]
    
pev(idpev_originflOrigin)
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(TE_WORLDDECAL)
    
engfunc(EngFunc_WriteCoordflOrigin[0])
    
engfunc(EngFunc_WriteCoordflOrigin[1])
    
engfunc(EngFunc_WriteCoordflOrigin[2])
    
write_byte(SCORCH)
    
message_end()
    
    
client_print(idprint_chat"Oh! A magic burned scorch has appeared under you!")

I saw that SCORCH define in the code here: https://forums.alliedmods.net/showthread.php?t=27594
after searching the forum for "scorch". So maybe the problem is there? I'm waiting for some suggestions. Thanks a lot!
__________________

Last edited by Flick3rR; 02-20-2015 at 16:31.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 02-20-2015 , 18:08   Re: Creating nade scorch (HE & Flashbang)
Reply With Quote #2

you should try lowering the z coordinate (height).
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 02-21-2015 , 01:31   Re: Creating nade scorch (HE & Flashbang)
Reply With Quote #3

I guess I'm beginning to become a noobie... So, yeah, that was the problem. The entiresting was that firstly I've lowered it with 26.0, when the actual value of the standing up player is 36. So I though it won't work in that way neither. But, yeah, I've figured that already out. Thanks!
__________________

Last edited by Flick3rR; 02-21-2015 at 01:44.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Reply



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 10:42.


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