Raised This Month: $ Target: $400
 0% 

Rocket Angle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 08-16-2009 , 14:23   Rocket Angle
Reply With Quote #1

I don't understand... the angle of this rocket is wrong?

Look my View Angle:

http://img228.**************/i/foto1rhk.jpg/

And check the Rocket

http://img194.**************/i/foto2uqo.jpg/

Code...:

PHP Code:
launch_rocket(id)
{
    new 
Float:originF[3], Float:anglesF[3], Float:velocityF[3]
    
    
// Get Origin/View Angles
    
pev(idpev_originoriginF)
    
pev(idpev_v_angleanglesF)
    
    
// Create the Entity
    
new ent fm_create_entity("info_target")
    
    
// Set Entity Classname
    
set_pev(entpev_classname"nrl_rocket")
    
    
// Set Rocket Model
    
engfunc(EngFunc_SetModelentmodel_rocket)
    
    
// Set Entity Size
    
set_pev(entpev_mins, {-2.0, -2.0, -2.0})
    
set_pev(entpev_maxs, {2.02.02.0})
    
    
// Set Entity Origin
    
engfunc(EngFunc_SetOriginentoriginF)
    
    
// Set Entity Angles
    
set_pev(entpev_anglesanglesF)
    
    
// Make a Solid Entity
    
set_pev(entpev_solidSOLID_BBOX)
    
    
// Set a Movetype
    
set_pev(entpev_movetypeMOVETYPE_FLY)
    
    
// Set Entity's Owner (the Launcher)
    
set_pev(entpev_ownerid)
    
    
// Emit Launch Sound
    
emit_sound(idCHAN_VOICEsound_rocketVOL_NORMATTN_NORM0PITCH_NORM)
    
    
// Set Entity Velocity
    
velocity_by_aim(idget_pcvar_num(cvar_velocity), velocityF)
    
set_pev(entpev_velocityvelocityF)
    
    
// Get Colors
    
new rgb_cvar[16], red[4], blue[4], green[4], colors[3]
    
get_pcvar_string(cvar_rocketcolorrgb_cvar15)
    
parse(rgb_cvarred3green3blue3)
    
colors[0] = clamp(str_to_num(red), 0255)
    
colors[1] = clamp(str_to_num(green), 0255)
    
colors[2] = clamp(str_to_num(blue), 0255
    
    
// Make Trail
    
if(get_pcvar_num(cvar_trail))
    {
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
        
write_byte(TE_BEAMFOLLOW)
        
write_short(ent)
        
write_short(g_FollowSpr)
        
write_byte(30)
        
write_byte(3)
        
write_byte(colors[0])
        
write_byte(colors[1])
        
write_byte(colors[2])
        
write_byte(255)
        
message_end()
    }
    
    
// Make Flare (white)
    
if(get_pcvar_num(cvar_rocketflare))
        
set_pev(entpev_effectsEF_BRIGHTLIGHT EF_LIGHT// Aura + Flare
    
    // Make Glow
    
if(get_pcvar_num(cvar_rocketglow))
        
fm_set_rendering(entkRenderFxGlowShellcolors[0], colors[1], colors[2], kRenderNormal50)

Someone can Help me?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
 



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 15:13.


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