FireSniperRifle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Welcome| | {{Welcome| | ||
desc=This will send a packet to server which is filled by the following parameters.| | desc=This will send a packet to server which is filled by the following parameters.| | ||
params=<syntaxhighlight lang="lua">( sniperid, aimposx, aimposy, aimposz, | params=<syntaxhighlight lang="lua">( sniperid, aimposx, aimposy, aimposz, dx, dy, dz)</syntaxhighlight> | ||
<poem>::sniperid : The weapon ID of sniper (28 or 29) to fire. | <poem>::sniperid : The weapon ID of sniper (28 or 29) to fire. | ||
::aimposx : The x co-ordinate of aim position of NPC ( can be determined using server using player.AimPos or can be calculated artificially). | ::aimposx : The x co-ordinate of aim position of NPC ( can be determined using server using player.AimPos or can be calculated artificially). | ||
::aimposy : The y co-ordinate of aim pos | ::aimposy : The y co-ordinate of aim pos | ||
::aimposz : The z co-ordinate of aimpos | ::aimposz : The z co-ordinate of aimpos | ||
:: | ::dx, dy, dz = The normalized direction vector(from aimpos to target ) multiplied by 16. | ||
</poem>| | </poem>| | ||
Revision as of 03:51, 24 November 2022
{{Welcome| desc=This will send a packet to server which is filled by the following parameters.|
params=
( sniperid, aimposx, aimposy, aimposz, dx, dy, dz)
sniperid : The weapon ID of sniper (28 or 29) to fire.
aimposx : The x co-ordinate of aim position of NPC ( can be determined using server using player.AimPos or can be calculated artificially).
aimposy : The y co-ordinate of aim pos
aimposz : The z co-ordinate of aimpos
dx, dy, dz = The normalized direction vector(from aimpos to target ) multiplied by 16.
|