Raised This Month: $51 Target: $400
 12% 

Player Animations


Post New Thread Reply   
 
Thread Tools Display Modes
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-11-2010 , 17:32   Re: Player Animations
Reply With Quote #11

Quote:
Originally Posted by EXteRmiNaToR View Post
i hope of another idea of how this could be implemented.
#6

__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
sgtbane
Member
Join Date: Feb 2006
Old 03-11-2010 , 22:54   Re: Player Animations
Reply With Quote #12

I am having some troubles with my math, maybe im just too tired. but hopefully someone can help me out with this.

I have two entities here. Both of them have origins that do not change, but one of them has angles that can change (the player) and the other has fixed angles.

PHP Code:
new Float:fAngA[3], Float:fAngB[3], Float:fRet
pev
(entpev_anglesfAngA)
pev(idpev_v_anglefAngB)
fRet fAngB[1] - fAngA[1]

client_print(idprint_center"Yaw:%i"floatround(fRet)) 
Working Situation:
Fixed Angle: 180
Variable Angle: 190
Result: 10
This is what I am looking for since there is an angle difference of 10.

Fail Situation:
Fixed Angle: 360
Variable Angle: 10 //Note that 10 is also 370
Result: -350
This is not the result that I want because I would need it to return the same results as above.
__________________
[Add|Community]

~SgtBane
sgtbane is offline
Send a message via MSN to sgtbane
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-11-2010 , 23:55   Re: Player Animations
Reply With Quote #13

Code:
new Float:fAngA[3], Float:fAngB[3], Float:fRet pev(ent, pev_angles, fAngA) pev(id, pev_v_angle, fAngB) fRet = fAngB[1] - fAngA[1] while(fRet < 0.0)    fRet += 360.0; while(fRet >= 360.0) fRet -= 360.0; client_print(id, print_center, "Yaw:%i", floatround(fRet))
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
sgtbane
Member
Join Date: Feb 2006
Old 03-12-2010 , 00:57   Re: Player Animations
Reply With Quote #14

Thank you! that is exactly what I needed!
__________________
[Add|Community]

~SgtBane
sgtbane is offline
Send a message via MSN to sgtbane
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 03-12-2010 , 01:43   Re: Player Animations
Reply With Quote #15

This is awesome!
__________________
As soon as possible.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-12-2010 , 01:49   Re: Player Animations
Reply With Quote #16

Well I have some ideea for the commands...How about when the player is joining the server, he gets a client_print(id, print_chat, "Bind a key to +emoticons for the anim list") and if they bind that key and press it (or just +emoticons in console) it brings up a menu with a list of the emoticons...And he presses the button needed and...VOILA xD

*Srry for my shitty english xD*
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
fR4gn0tiX!
Senior Member
Join Date: Nov 2009
Location: Georgia, Tbilisi
Old 03-12-2010 , 05:27   Re: Player Animations
Reply With Quote #17

This is amazing!
__________________
fR4gn0tiX! is offline
Send a message via Skype™ to fR4gn0tiX!
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 03-14-2010 , 05:41   Re: Player Animations
Reply With Quote #18

Any progress?
__________________
As soon as possible.
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
sgtbane
Member
Join Date: Feb 2006
Old 03-14-2010 , 11:44   Re: Player Animations
Reply With Quote #19

Yeah, and its pretty cool if I do say so myself. Only thing is that a server that I had connections to get up and running to actually test this out on fell through. So now I have no real place to test this and I don't want to release it to the public if there are major flaws in it. I want to get at least some of them out first
__________________
[Add|Community]

~SgtBane
sgtbane is offline
Send a message via MSN to sgtbane
Brreaker
Senior Member
Join Date: Oct 2009
Location: Constanta, Romania
Old 03-14-2010 , 11:55   Re: Player Animations
Reply With Quote #20

If you want I can help you test ur plugin...
Brreaker is offline
Send a message via MSN to Brreaker Send a message via Yahoo to Brreaker
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 02:42.


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