Raised This Month: $ Target: $400
 0% 

Create Grenade Black Hole Decal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-10-2014 , 17:12   Create Grenade Black Hole Decal
Reply With Quote #1

Can someone provide me a code which will create a smaller grenade explosion black hole decal where i'm aiming?


Thanks A lot!
HENNESSY is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 08:41   Re: Create Grenade Black Hole Decal
Reply With Quote #2

Just go through decal list and perhaps you will find the needed decal.
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-11-2014 , 09:28   Re: Create Grenade Black Hole Decal
Reply With Quote #3

Quote:
Originally Posted by usaexelent View Post
Just go through decal list and perhaps you will find the needed decal.
Where i can find the decal list exactly?
HENNESSY is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 10:07   Re: Create Grenade Black Hole Decal
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=20448
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-11-2014 , 15:34   Re: Create Grenade Black Hole Decal
Reply With Quote #5

Quote:
Originally Posted by usaexelent View Post
Can you give me a code exmaple of how to use it?
HENNESSY is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 17:56   Re: Create Grenade Black Hole Decal
Reply With Quote #6

PHP Code:
    new decalnum[4] = 
    {
        
7,
        
8,
        
26,
        
27
    
}
    
    
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY//message begin
    
write_byte(TE_WORLDDECAL)

    
engfunc(EngFunc_WriteCoord,origin[0] + random_float(0.0,5.0))
    
engfunc(EngFunc_WriteCoord,origin[1] + random_float(0.0,5.0))
    
engfunc(EngFunc_WriteCoord,origin[2] + random_float(0.0,5.0))
    
write_byte(decalnum[random(sizeof decalnum)]) // texture index of precached decal texture name
    
message_end() 
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-11-2014 , 18:04   Re: Create Grenade Black Hole Decal
Reply With Quote #7

Quote:
Originally Posted by usaexelent View Post
PHP Code:
    new decalnum[4] = 
    {
        
7,
        
8,
        
26,
        
27
    
}
    
    
message_begin(MSG_BROADCAST ,SVC_TEMPENTITY//message begin
    
write_byte(TE_WORLDDECAL)

    
engfunc(EngFunc_WriteCoord,origin[0] + random_float(0.0,5.0))
    
engfunc(EngFunc_WriteCoord,origin[1] + random_float(0.0,5.0))
    
engfunc(EngFunc_WriteCoord,origin[2] + random_float(0.0,5.0))
    
write_byte(decalnum[random(sizeof decalnum)]) // texture index of precached decal texture name
    
message_end() 
Thank you bro!
HENNESSY is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 10-11-2014 , 18:30   Re: Create Grenade Black Hole Decal
Reply With Quote #8

PHP Code:
    message_begin(MSG_BROADCAST ,SVC_TEMPENTITY//message begin 
    
write_byte(TE_WORLDDECAL
    
engfunc(EngFunc_WriteCoord,origin[0]) // Origin in float,  you can change function to take integer value
    
engfunc(EngFunc_WriteCoord,origin[1]) 
    
engfunc(EngFunc_WriteCoord,origin[2]) 
    
write_byte(26// texture index of precached decal texture name 
    
message_end() 
I took last code from one of my plugins with out thinking, it had a lot of thing you don't needed, this one is simpler.
__________________
and once again
usaexelent is offline
Send a message via Skype™ to usaexelent
HENNESSY
Member
Join Date: Sep 2013
Location: Russian Federation, Bela
Old 10-11-2014 , 20:12   Re: Create Grenade Black Hole Decal
Reply With Quote #9

Quote:
Originally Posted by usaexelent View Post
PHP Code:
    message_begin(MSG_BROADCAST ,SVC_TEMPENTITY//message begin 
    
write_byte(TE_WORLDDECAL
    
engfunc(EngFunc_WriteCoord,origin[0]) // Origin in float,  you can change function to take integer value
    
engfunc(EngFunc_WriteCoord,origin[1]) 
    
engfunc(EngFunc_WriteCoord,origin[2]) 
    
write_byte(26// texture index of precached decal texture name 
    
message_end() 
I took last code from one of my plugins with out thinking, it had a lot of thing you don't needed, this one is simpler.
I know i already changed your first code
HENNESSY 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 17:34.


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