[Include] Sniper vs Attached Objects v0.1
#1

Sniper vs Attached Objects v0.1
Hi!

I'm fixed the sniper bug with attached objects.
Currently not synced for players.
You must include it every filterscript, when you using holding objects.

Download

New functions:
pawn Код:
GetPlayerAttachedObjectModel(playerid, index)
GetPlayerAttachedObjectBone(playerid, index)
Float:GetPlayerAttachedObjectOffsetX(playerid, index)
Float:GetPlayerAttachedObjectOffsetY(playerid, index)
Float:GetPlayerAttachedObjectOffsetZ(playerid, index)
Float:GetPlayerAttachedObjectRotX(playerid, index)
Float:GetPlayerAttachedObjectRotY(playerid, index)
Float:GetPlayerAttachedObjectRotZ(playerid, index)
Float:GetPlayerAttachedObjectScaleX(playerid, index)
Float:GetPlayerAttachedObjectScaleY(playerid, index)
Float:GetPlayerAttachedObjectScaleZ(playerid, index)
Images:

www.nm-ss.tarhely.biz/SAMP/Sniperfix_1.jpg
www.nm-ss.tarhely.biz/SAMP/Sniperfix_2.jpg
Reply
#2

Very good.
Syncing would be a helpful tool though

+ Also, for people that don't know what this bug is, maybe you should describe what the bug is
Reply
#3

What you should do is to remove the objects when they press the aim button,i.e. OnPlayerKeyStateChange,
but not checking it in OnPlayerUpdate.
This will be slower.

Anyway a good release.
Reply
#4

Thanks!

I'm try to sync it with OnPlayerUpdate, but it not work.
This will be fixed in v0.2
Reply
#5

cool,very good
Reply
#6

I don't get what the 'Sniper Bug' is. Can you explain?
Reply
#7

Quote:
Originally Posted by pagie1111
Посмотреть сообщение
I don't get what the 'Sniper Bug' is. Can you explain?
I can only guess that the attached object is in the way of your aim scope, but that would not really be a bug, but an obvious thing.
I am not sure about this.
Reply
#8

The sniper bug is a bug that, when sniping, displays all of the bone-attached objects in front of the scope crosshair.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)