AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help to make velocity for flamethrower (https://forums.alliedmods.net/showthread.php?t=173277)

dias 12-03-2011 03:34

Help to make velocity for flamethrower
 
- 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]

bibu 12-03-2011 05:13

Re: Help to make velocity for flamethrower
 
Show your code what you already have.

dias 12-03-2011 05:28

Re: Help to make velocity for flamethrower
 
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()    




All times are GMT -4. The time now is 08:29.

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