Raised This Month: $ Target: $400
 0% 

Flipping player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
padilha007
Senior Member
Join Date: Jul 2008
Old 07-26-2010 , 12:01   Flipping player
Reply With Quote #1

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
__________________


Last edited by padilha007; 07-26-2010 at 12:19.
padilha007 is offline
DaxProxy
Senior Member
Join Date: Sep 2007
Old 07-28-2010 , 08:10   Re: Flipping player
Reply With Quote #2

Quote:
Originally Posted by padilha007 View Post
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.
__________________

Want ApolloRP for Counter-Strike? Show your support: http://forums.alliedmods.net/showthr...39#post1264739
DaxProxy is offline
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-28-2010 , 08:22   Re: Flipping player
Reply With Quote #3

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.

Last edited by Gadzislaw007; 07-28-2010 at 08:33. Reason: An idea
Gadzislaw007 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 07-28-2010 , 10:24   Re: Flipping player
Reply With Quote #4

Try to do it at player prethink or in addtofullpack.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-28-2010 , 10:28   Re: Flipping player
Reply With Quote #5

What about server_frame? Does prethink notice even mouse movement?
Gadzislaw007 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-30-2010 , 19:14   Re: Flipping player
Reply With Quote #6

Any update on this? I've never seen the view actually up-side down.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-31-2010 , 05:54   Re: Flipping player
Reply With Quote #7

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.
Gadzislaw007 is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-31-2010 , 12:57   Re: Flipping player
Reply With Quote #8

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.
__________________
Hunter-Digital 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 00:06.


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