AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Flipping player (https://forums.alliedmods.net/showthread.php?t=133535)

padilha007 07-26-2010 12:01

Flipping player
 
Is possible to flip a player(the entire model) upside down in the air, and this affect you view two?


View angle = Player Model angle

DaxProxy 07-28-2010 08:10

Re: Flipping player
 
Quote:

Originally Posted by padilha007 (Post 1252082)
Is possible to flip a player(the entire model) upside down in the air, and this affect you view two?


View angle = Player Model angle

I know it's possiple to flip an view, but about the model...im quite sure it's not possiple.

Anyways if you just want to flip view, let me know...i'll find that code for you.

Gadzislaw007 07-28-2010 08:22

Re: Flipping player
 
It is possible to flip any entity, but dunno if it is possible with player.

What about this function:
Code:

new Float:Angle[3] /// Angle needed
entity_get_vector(id, EV_VEC_v_angle, Angle) /// Get V_look angle
Angle[1] = 0.00      /// Y Flipping
entity_set_vector(id, EV_VEC_angles, Angle) /// Set whole entity angle with Y flipping = 0 (No Y flipping)

It's supposed to flip player by Z(up, down) anx X(left, right) axis while he's moving his mouse.
Kinda confusing.

I'm still an amateur, so I'm just wondering.

joropito 07-28-2010 10:24

Re: Flipping player
 
Try to do it at player prethink or in addtofullpack.

Gadzislaw007 07-28-2010 10:28

Re: Flipping player
 
What about server_frame? Does prethink notice even mouse movement?

Drak 07-30-2010 19:14

Re: Flipping player
 
Any update on this? I've never seen the view actually up-side down.

Gadzislaw007 07-31-2010 05:54

Re: Flipping player
 
Well, there were a few features, like hegrenade explosion plugins, and if you stayed really close to the nade while exploding your screen was flipping even about 180 degrees.

Hunter-Digital 07-31-2010 12:57

Re: Flipping player
 
Those plugins use punchangle.

Code:

entity_set_vector(id, EV_VEC_punchangle, Float:{0.0, 0.0, 180.0})
That'll "punch" your view to 180 roll and will slowly recover on it's own to normal.
Also, you'll have verry weird view control when your view is upside down, not recommended for intented gameplay.


All times are GMT -4. The time now is 00:06.

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