Raised This Month: $32 Target: $400
 8% 

[TF2] tf_generic_bomb explosion stock


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 10-08-2015 , 07:48   [TF2] tf_generic_bomb explosion stock
Reply With Quote #1

A quick and easy way to cause an explosion.

PHP Code:
Explode(flPos50.0500.0"halloween_explosion""ui/duel_challenge_rejected_with_restriction.wav");

stock void Explode(float flPos[3], float flDamagefloat flRadius, const char[] strParticle, const char[] strSound)
{
    
int iBomb CreateEntityByName("tf_generic_bomb");
    
DispatchKeyValueVector(iBomb"origin"flPos);
    
DispatchKeyValueFloat(iBomb"damage"flDamage);
    
DispatchKeyValueFloat(iBomb"radius"flRadius);
    
DispatchKeyValue(iBomb"health""1");
    
DispatchKeyValue(iBomb"explode_particle"strParticle);
    
DispatchKeyValue(iBomb"sound"strSound);
    
DispatchSpawn(iBomb);

    
AcceptEntityInput(iBomb"Detonate");

__________________

Last edited by Pelipoika; 10-08-2015 at 09:36. Reason: Removed useless model keyvalue
Pelipoika 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 19:53.


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