Vice Underdogs

Scripting => Script Showroom => Topic started by: sseebbyy on August 04, 2013, 11:24:20 am

Title: First-Person Aim ~loosing weapon fixed~
Post by: sseebbyy on August 04, 2013, 11:24:20 am
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fmurdock.in%2Fwiki%2Fimages%2F2%2F26%2FWeapon_26.png&hash=866f80574c4fe330bd26fc206fc4583897d5a145)       (https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fmurdock.in%2Fwiki%2Fimages%2F7%2F73%2FWeapon_27.png&hash=9ed8d789fc2967ed6cfab1f4514e022d7944f025)      (https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fmurdock.in%2Fwiki%2Fimages%2F6%2F63%2FWeapon_32.png&hash=6262f23261710af042e618d76d6bf92ce6b94938)



You remember that time when you are in a fight and want ~by a mistake~ to aim with the m4/rugger/m60 and you were lost your weapon from hand, and were needed to run and search your weapon in the inventory again ?

Now, you do not have to search for it (and maybe loosing the fight) anymore, 'cause I found a simple way that fix it !



Here is a video
http://www.youtube.com/watch?v=E8_Gn-1qIW0



Bugs
If you are raping it, will set your weapon to Fist.
If you are keeping the aim button down, it will set your weapon to Fist.



Credits
Seby (me)



Here is the code:
Code: [Select]
function onPlayerKeyStateChange( player, key, down )
if(key == KEY_ONFOOT_AIM)
{
local wep = player.Weapon;
if(wep == 26 || wep == 27 || wep == 32) player.SetWeapon(wep, 1);
}
}
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: HeLLHounD on August 04, 2013, 10:22:48 pm
Damn Seby, it's been a while since I've seen your name around :D
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: sseebbyy on August 05, 2013, 07:58:00 am
Damn Seby, it's been a while since I've seen your name around :D

Hmmm, I don't remember you  :-\
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: [TZ_R]SuperKiller on August 06, 2013, 10:58:46 am
 :o Good Job
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: HeLLHounD on August 06, 2013, 08:16:15 pm
Hmmm, I don't remember you  :-\

Kenway ::)
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: Thijn on August 07, 2013, 10:01:14 am
I don't get what this does. I don't see any difference in the video :x
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: sseebbyy on August 07, 2013, 12:29:37 pm
I don't get what this does. I don't see any difference in the video :x

Without this script, when you will try to aim with m4/rugger/m60  your weapon will be set to Fist/Brass and you will need to search for the m4/rugger/m60 in your inventory.
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: Thijn on August 07, 2013, 03:58:15 pm
Aim, as in right click?

If that's the case I get it. Seems like a shitty bug :P
Title: Re: First-Person Aim ~loosing weapon fixed~
Post by: sseebbyy on August 07, 2013, 07:53:27 pm
Aim, as in right click?

If that's the case I get it.

Yep, that is.