SA-MP Forums Archive
[Include] Sniper vs Attached Objects v0.1 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Sniper vs Attached Objects v0.1 (/showthread.php?tid=254151)



Sniper vs Attached Objects v0.1 <BUGFIX> - kurta999 - 09.05.2011

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


Re: Sniper vs Attached Objects v0.1 - Ash. - 10.05.2011

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


Re: Sniper vs Attached Objects v0.1 - leong124 - 11.05.2011

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.


Re: Sniper vs Attached Objects v0.1 - kurta999 - 11.05.2011

Thanks!

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


Re: Sniper vs Attached Objects v0.1 - Skaizo - 11.05.2011

cool,very good


Re: Sniper vs Attached Objects v0.1 - pagie1111 - 11.05.2011

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


Re: Sniper vs Attached Objects v0.1 - Mike Garber - 11.05.2011

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.


Re: Sniper vs Attached Objects v0.1 - Hiddos - 11.05.2011

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