Raised This Month: $ Target: $400
 0% 

Help to make velocity for flamethrower


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-03-2011 , 03:34   Help to make velocity for flamethrower
Reply With Quote #1

- I saw a flamethrower in CSO (like CS1.6) called Salamander. but i don't know how to make velocity for TE_SPRAY like that. If i use VelocityByAim... ... It's hard to explain... See this video and this images. I want to make a Velocity for TE_SPRAY like CSO Salamander FlameThrower
- My friend has done this... But he don't teach me how to do that

Video: http://www.youtube.com/watch?v=FqyldSToBQw
[IMG]http://img713.**************/img713/2758/97548797.png[/IMG]

Last edited by dias; 12-03-2011 at 03:34.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
bibu
Veteran Member
Join Date: Sep 2010
Old 12-03-2011 , 05:13   Re: Help to make velocity for flamethrower
Reply With Quote #2

Show your code what you already have.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 12-03-2011 , 05:28   Re: Help to make velocity for flamethrower
Reply With Quote #3

Just a normal code :-?

- By Fry
PHP Code:
public fire(id)
{
    new 
Float:fOrigin[3], Float:fVelocity[3]
    
entity_get_vector(id,EV_VEC_originfOrigin)
    
VelocityByAim(id35fVelocity)
    
    new 
Float:fTemp[3], iFireOrigin[3]
    
xs_vec_add(fOriginfVelocityfTemp)
    
FVecIVec(fTempiFireOrigin)
    
    new 
Float:fFireVelocity[3], iFireVelocity[3]
    
VelocityByAim(id120fFireVelocity)
    
FVecIVec(fFireVelocityiFireVelocity)

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(120)
    
write_coord(iFireOrigin[0])
    
write_coord(iFireOrigin[1])
    
write_coord(iFireOrigin[2])
    
write_coord(iFireVelocity[0])
    
write_coord(iFireVelocity[1])
    
write_coord(iFireVelocity[2] + 5)
    
write_short(sprite_fire)
    
write_byte(1)
    
write_byte(10)
    
write_byte(1)
    
write_byte(5)
    
message_end()    

dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Reply


Thread Tools
Display Modes

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 08:29.


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