April 16, 2024, 11:04:53 pm

Author Topic: First-Person Aim ~loosing weapon fixed~  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

sseebbyy

  • Newbie
  • *
  • Posts: 14
  • Country: ro
    • View Profile
First-Person Aim ~loosing weapon fixed~
« on: August 04, 2013, 11:24:20 am »
            



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



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);
}
}
« Last Edit: August 04, 2013, 11:31:37 am by sseebbyy »
Winner Winner x 1 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


HeLLHounD

  • Crazy Man
  • *****
  • Posts: 1333
  • Country: be
  • 666
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #1 on: August 04, 2013, 10:22:48 pm »
Damn Seby, it's been a while since I've seen your name around :D
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


sseebbyy

  • Newbie
  • *
  • Posts: 14
  • Country: ro
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #2 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  :-\
Pwnt Pwnt x 1 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


[TZ_R]SuperKiller

  • Newbie
  • *
  • Posts: 16
  • Country: pk
  • Never Cry | Never Die
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #3 on: August 06, 2013, 10:58:46 am »
 :o Good Job
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


HeLLHounD

  • Crazy Man
  • *****
  • Posts: 1333
  • Country: be
  • 666
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #4 on: August 06, 2013, 08:16:15 pm »
Hmmm, I don't remember you  :-\

Kenway ::)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #5 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
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


sseebbyy

  • Newbie
  • *
  • Posts: 14
  • Country: ro
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #6 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.
Agree Agree x 1 (list)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #7 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
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


sseebbyy

  • Newbie
  • *
  • Posts: 14
  • Country: ro
    • View Profile
Re: First-Person Aim ~loosing weapon fixed~
« Reply #8 on: August 07, 2013, 07:53:27 pm »
Aim, as in right click?

If that's the case I get it.

Yep, that is.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor