Results 1 to 10 of 12

Thread: Player movement & grenades.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by voron00 View Post
    setWepType(weap type); // No idea what was it for, proably some misunderstanding.
    Sorry for the late reply, but I just remembered that this was for fixing bots that are shooting with snipers/semi rifles. Without the fix the gun will 'jam' due to not releasing the shoot button. A proper fix would be to find the 'semiAuto' & 'boltAction' addresses from the weaponfile and use it like this;

    From

    Code:
                    if(!bot_wepType[clientnum])
                    {
                        if(bot_shoot[clientnum] == 4097)
                            bot_shoot[clientnum] = 0;
                        else
                            bot_shoot[clientnum] = 4097;
                    } else
                        bot_shoot[clientnum] = 4097;
    To something like

    Code:
                    if(iswepbolt[clientnum] || isweprifle[clientnum])
                    {
                        if(bot_shoot[clientnum] == 4097)
                            bot_shoot[clientnum] = 0;
                        else
                            bot_shoot[clientnum] = 4097;
                    } else
                        bot_shoot[clientnum] = 4097;
    Last edited by filthy_freak_; 14th March 2018 at 08:53.

  2. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    kung foo man (15th March 2018)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •