This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[STOCK] Creating explosions by the engine


Post New Thread Reply   
 
Thread Tools Display Modes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-06-2010 , 13:02   Re: [STOCK] Creating explosions by the engine
Reply With Quote #11

Stock updated with 1 example added.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 11-08-2010 , 06:21   Re: [STOCK] Creating explosions by the engine
Reply With Quote #12

Code:
public fw_Player_Killed(iVictim) 
{
    new Float:vecOrigin[3]
    entity_get_vector(iVictim, EV_VEC_origin, vecOrigin)
    
    // Registering Ham_TakeDamage fwd
    new HamHook:hTakeDamageFwd = RegisterHam(Ham_TakeDamage, "player", "fw_Player_TakeDamage")
    
    // Creating explosion entity
    new iEntId = ExplosionCreate(vecOrigin, 100.0, _ /* no flags */, true, true /* we must activate it manually */)
    
    // His owner would be the victim, here is where we should
    entity_set_edict(iEntId, EV_ENT_owner, iVictim)
    
    // Manually activation
    force_use(iEnt, iEnt) ; Wrong.
    
    // We don't need the Ham forward, so we must disable it
    DisableHamForward(hTakeDamageFwd)
}
dFF is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 11-08-2010 , 21:45   Re: [STOCK] Creating explosions by the engine
Reply With Quote #13

Quote:
Originally Posted by dFF View Post
Code:
public fw_Player_Killed(iVictim) 
{
    new Float:vecOrigin[3]
    entity_get_vector(iVictim, EV_VEC_origin, vecOrigin)
    
    // Registering Ham_TakeDamage fwd
    new HamHook:hTakeDamageFwd = RegisterHam(Ham_TakeDamage, "player", "fw_Player_TakeDamage")
    
    // Creating explosion entity
    new iEntId = ExplosionCreate(vecOrigin, 100.0, _ /* no flags */, true, true /* we must activate it manually */)
    
    // His owner would be the victim, here is where we should
    entity_set_edict(iEntId, EV_ENT_owner, iVictim)
    
    // Manually activation
    force_use(iEnt, iEnt) ; Wrong.
    
    // We don't need the Ham forward, so we must disable it
    DisableHamForward(hTakeDamageFwd)
}
Oops, little typo.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Bence98007
Member
Join Date: Jun 2012
Old 10-12-2012 , 16:37   Re: [STOCK] Creating explosions by the engine
Reply With Quote #14

Can you give me an example, to this stock?
(with /boom, to create explosion)

Thanks!
Bence98007 is offline
StorM20
BANNED
Join Date: Dec 2011
Location: de_inferno en Julieta
Old 10-21-2012 , 10:57   Re: [STOCK] Creating explosions by the engine
Reply With Quote #15

Quote:
Originally Posted by Bence98007 View Post
Can you give me an example, to this stock?
(with /boom, to create explosion)

Thanks!


Look the Date, the topic is in "2010"
You are "Respawn TOPIC"

Last edited by StorM20; 10-21-2012 at 11:02.
StorM20 is offline
Send a message via MSN to StorM20
Bence98007
Member
Join Date: Jun 2012
Old 10-21-2012 , 11:22   Re: [STOCK] Creating explosions by the engine
Reply With Quote #16

What? I cant understand this... can you give me an example to this stock, how to make an explosion?
Bence98007 is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 10-21-2012 , 13:44   Re: [STOCK] Creating explosions by the engine
Reply With Quote #17

I tried code it says


Merser killed self with a headshot from player **

so I see icons of suicide and no explosion.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
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 16:20.


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