Rules FAQ Members List Search Register Login

 Raised This Month: \$140 Target: \$400 35%

 Thread Tools Display Modes
Author Message
ayyyyyyylmao
Junior Member
Join Date: Apr 2018
 08-09-2018 , 10:19   Need a formula (Origin To Angles) #1 Me need a formula, convert players origin to angles, smth like new Floatrigin = GetClientAbsOrigin(enemy); new Float:angles = OriginToAngles(origin); if (angles[0] == 89 && angles[1] == 0) PrintCenterTextAll("You need look at X: 89, Y: 0 to see an enemy!"); any ideas?
eyal282
Veteran Member
Join Date: Aug 2011
08-09-2018 , 10:25   Re: Need a formula (Origin To Angles)
#2

Quote:
 Originally Posted by ayyyyyyylmao Me need a formula, convert players origin to angles, smth like new Floatrigin = GetClientAbsOrigin(enemy); new Float:angles = OriginToAngles(origin); if (angles[0] == 89 && angles[1] == 0) PrintCenterTextAll("You need look at X: 89, Y: 0 to see an enemy!"); any ideas?
That is an impossible task ( Almost 100% sure ), and my answer to your last post requires you to make a trace with the first argument being the client's origin and the second argument being the other player's ORIGIN AGAIN.
__________________
Accepting private work.

myGaming unique coded versus no VIP no premium.
Mitchell
~lick~
Join Date: Mar 2010
08-09-2018 , 10:55   Re: Need a formula (Origin To Angles)
#3

Quote:
 Originally Posted by eyal282 That is an impossible task ( Almost 100% sure ), and my answer to your last post requires you to make a trace with the first argument being the client's origin and the second argument being the other player's ORIGIN AGAIN.
I mean there's this which can get him to where he wants:
https://sm.alliedmods.net/new-api/ve...etVectorAngles
and creating a vector from point: https://sm.alliedmods.net/new-api/ve...ctorFromPoints
__________________
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
08-09-2018 , 11:01   Re: Need a formula (Origin To Angles)
#4

Quote:
 Originally Posted by eyal282 That is an impossible task
and you've only been scripting for a few months
__________________
eyal282
Veteran Member
Join Date: Aug 2011
08-09-2018 , 11:08   Re: Need a formula (Origin To Angles)
#5

Quote:
 Originally Posted by Silvers and you've only been scripting for a few months
Making an angle from a single origin? I would never assume this is possible. Also GetVectorAngles ( if it does work for Origin ) doesn't explicitly say "Origin" so it's a bit more confusing...

I just realized that you said I'm right lol.

Also I started Amxmodx in 2013 so I got some experience.
__________________
Accepting private work.

myGaming unique coded versus no VIP no premium.

Last edited by eyal282; 08-09-2018 at 16:02.
Facksy
Senior Member
Join Date: Apr 2017
Location: here
08-09-2018 , 11:22   Re: Need a formula (Origin To Angles)
#6

Quote:
 Originally Posted by Mitchell I mean there's this which can get him to where he wants: https://sm.alliedmods.net/new-api/ve...etVectorAngles and creating a vector from point: https://sm.alliedmods.net/new-api/ve...ctorFromPoints
Can you tell me whats the difference between SubstractVectors() and MakeVectorFromPoints() ?
__________________
HereMy Steam
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
08-09-2018 , 11:36   Re: Need a formula (Origin To Angles)
#7

Quote:
 Originally Posted by Facksy Can you tell me whats the difference between SubstractVectors() and MakeVectorFromPoints() ?
There isn't one.

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TF2Items         TFDodgeball         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

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

 DMCA - Archive - Top