Raised This Month: $ Target: $400
 0% 

rocket drop help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wuu
Member
Join Date: Apr 2008
Old 05-17-2010 , 16:37   Re: rocket drop help
Reply With Quote #1

PHP Code:
public fire_rocket(id) {
    new 
Float:StartOrigin[3], Float:Angle[3], Float:targetv[3]
    new 
PlayerOrigin[3]
    
get_user_origin(idPlayerOrigin1)
    
StartOrigin[0] = float(PlayerOrigin[0])
    
StartOrigin[1] = float(PlayerOrigin[1])
    
StartOrigin[2] = float(PlayerOrigin[2]+300)
    
    
Angle[0] = float(4500.0)
    
Angle[1] = float(0)
    
Angle[2] = float(0)
    
    
targetv[0] = float(0)
    
targetv[1] = float(0)
    
targetv[2] = float(-4500)
    
    new 
RocketEnt create_entity("info_target")
    
entity_set_string(RocketEntEV_SZ_classname"rpgrocket")
    
entity_set_model(RocketEnt"models/rpgrocket.mdl")
    
entity_set_origin(RocketEntStartOrigin)
    
entity_set_vectorRocketEntEV_VEC_anglestargetv )
    
    new 
Float:MinBox[3] = {-1.0, -1.0, -1.0}
    new 
Float:MaxBox[3] = {1.01.01.0}
    
entity_set_vector(RocketEntEV_VEC_minsMinBox)
    
entity_set_vector(RocketEntEV_VEC_maxsMaxBox)
            
    
entity_set_int(RocketEntEV_INT_solid2)
    
entity_set_int(RocketEntEV_INT_movetype9)
    
entity_set_edict(RocketEntEV_ENT_ownerid)
    
set_pev(RocketEntpev_effectsEF_LIGHT)
    
    
entity_set_vector(RocketEntEV_VEC_velocitytargetv)

    
emit_sound(RocketEntCHAN_WEAPON"weapons/rocketfire1.wav"VOL_NORMATTN_NORM0PITCH_NORM)


Ok after some time i rip off some plug-in i done this, its shouts projectile rocket down.

What is maximum high?
PHP Code:
StartOrigin[2] = float(PlayerOrigin[2]+300
Still missing, explosion , smoke trail and area damage!
Wuu 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 03:39.


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