Raised This Month: $ Target: $400
 0% 

How to lay down?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 02-11-2011 , 12:18   How to lay down?
Reply With Quote #1

How lay down platform? about this: "__"
now it is: "\"
Screen:
http://www.part.lt/perziura/65861710...039b9e308.bmp/
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 02-11-2011 , 14:21   Re: How to lay down?
Reply With Quote #2

Upload image to **************, I cannot see the picture...
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 02-11-2011 , 16:10   Re: How to lay down?
Reply With Quote #3

ice shot set its angles.
matsi is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 02-11-2011 , 16:17   Re: How to lay down?
Reply With Quote #4

Uploaded to **************: [IMG]http://img11.**************/img11/2892/platform.png[/IMG]
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 02-12-2011 , 04:30   Re: How to lay down?
Reply With Quote #5

probally pev_angle ?
__________________
I am out of order!
grimvh2 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 02-12-2011 , 05:31   Re: How to lay down?
Reply With Quote #6

I give code:
PHP Code:
   new Float:origin[3], i
    entity_get_vector
(i,EV_VEC_origin,origin)
    new 
ent create_entity("info_target")
    
entity_set_origin(ent,origin);
    
origin[2] += 300.0
    entity_set_origin
(i,origin)
    
entity_set_string(ent,EV_SZ_classname,"FlagStand_Model");
    
entity_set_model(ent,holo_model);
    
entity_set_int(ent,EV_INT_solid2)
    
entity_set_byte(ent,EV_BYTE_controller1,125);
    
entity_set_byte(ent,EV_BYTE_controller2,125);
    
entity_set_byte(ent,EV_BYTE_controller3,125);
    
entity_set_byte(ent,EV_BYTE_controller4,125);
    new 
Float:maxs[3] = {16.0,16.0,36.0}
    new 
Float:mins[3] = {-16.0,-16.0,-36.0}
    
entity_set_size(ent,mins,maxs)
    
entity_set_float(ent,EV_FL_animtime,2.0)
    
entity_set_float(ent,EV_FL_framerate,1.0)
    
entity_set_int(ent,EV_INT_sequence,0);
    
entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)
    
drop_to_floor(ent)
    return 

Can fix?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-12-2011 , 05:51   Re: How to lay down?
Reply With Quote #7

add this somewhere in your code:
PHP Code:
entity_set_vector(entEV_VEC_anglesFloat:{PITCHYAWROLL}); 
To PITCH, YAW and ROLL try writing float values. For example:
0.0, 0.0, 50.0

Experiment with the values, until it is good.( I think you only need to edit the 3rd number( ROLL ) )
Lulu the hero is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 02-12-2011 , 06:07   Re: How to lay down?
Reply With Quote #8

ohh, i will try, thanks.

Nothing :// maybe model is bad?

Last edited by ~Ice*shOt; 02-12-2011 at 06:27.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-12-2011 , 07:57   Re: How to lay down?
Reply With Quote #9

Do you have hlmv?( half life model viewer ) Download it here: http://chumbalum.swissquake.ch/hlmv/index.html
Upload the model here in this topic( zip it in, and attach it to your post ).

There is line in your code, which doesn't do anything, I guess:
PHP Code:
entity_set_origin(i,origin
Why do you SET the origin to the PLAYER?

I was thinking that it is attached to somewhere wrong. It looks like it is attached to the player, as a weapon is attached.

Indeed, you need to set angles. Post your whole code here( the new code with the angles written in it )
Plus upload the model as I mentioned above.

Last edited by Lulu the hero; 02-12-2011 at 08:06.
Lulu the hero is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 02-12-2011 , 08:36   Re: How to lay down?
Reply With Quote #10

With hlmv my model shows that "/"

You say, i have to remove origin?
PHP Code:
   new Float:origin[3]
    
entity_get_vector(id,EV_VEC_origin,origin)
    new 
ent create_entity("info_target")
    
origin[2] += 300.0
    entity_set_string
(ent,EV_SZ_classname,"FlagStand_Model");
    
entity_set_model(ent,holo_model);
    
entity_set_int(ent,EV_INT_solid2)
    
entity_set_byte(ent,EV_BYTE_controller1,125);
    
entity_set_byte(ent,EV_BYTE_controller2,125);
    
entity_set_byte(ent,EV_BYTE_controller3,125);
    
entity_set_byte(ent,EV_BYTE_controller4,125);
    new 
Float:maxs[3] = {16.0,16.0,36.0}
    new 
Float:mins[3] = {-16.0,-16.0,-36.0}
    
entity_set_size(ent,mins,maxs)
    
entity_set_float(ent,EV_FL_animtime,2.0)
    
entity_set_float(ent,EV_FL_framerate,1.0)
    
entity_set_int(ent,EV_INT_sequence,0)
    
entity_set_vector(entEV_VEC_anglesFloat:{0.600.750.50})
    
entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)
    
drop_to_floor(ent)
    return 

~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
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 08:23.


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