|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2007
Location: Germany
Posts: 2,998
Reputation: 253
|
GetPlayerCameraWeaponVector
As the title says, here I am providing a function which gets the correct vector if you aim with a ranged weapon Parameters Code:
(playerid, & Float: vX, & Float: vY, & Float: vZ) playerid The ID of the player you want to obtain the camera weapon vector of. Float: vX A float to store the X coordinate, passed by reference. Float: vY A float to store the Y coordinate, passed by reference. Float: vZ A float to store the Z coordinate, passed by reference. Returns false if there wasnt a far combat weapon equipped or the player isnt connected Final - AdjustVector function rewritten - Include name changes, it was over 32 char - Comments removed, its obviously how to use it - Function now returns the front vector if their wasnt a far combat weapon equipped Download Last edited by Nero_3D; 03/11/2012 at 06:56 PM. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Belgium
Posts: 3,075
Reputation: 562
|
Awesome! Thanks for sharing this useful include Nero.
![]() + rep. |
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2009
Posts: 203
Reputation: 3
|
realy nice release
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Nov 2007
Posts: 277
Reputation: 51
|
these aren't the correct offsets, you get the correct ones from going into weapon.dat..
|
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2010
Location: Black Asylum
Posts: 2,397
Reputation: 210
|
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jan 2010
Location: Australia
Posts: 4,006
Reputation: 832
|
This will come in so damn handy for me, thanks alot nero!
rep + from me! |
|
|
|
|
|
#7 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Feb 2010
Posts: 6,858
Reputation: 490
|
Oh this will be very nice and useful!
+ rep |
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2011
Posts: 295
Reputation: 35
|
Awesome! I liked it.
|
|
|
|
|
|
#9 |
|
Banned
![]() Join Date: Jul 2010
Posts: 792
Reputation: 25
|
I like it.
|
|
|
|
|
|
#10 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Apr 2009
Posts: 524
Reputation: 14
|
Was waiting for my doctor title to do that,
but now you did it, we can finally advance with camera functions. Thanks a lot, very helpful! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|