Jump to content

Welcome to Omni-bot Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

Can Bots Use Knifes?

- - - - -

  • Please log in to reply
1 reply to this topic




  • Members
  • Pip
  • 1 posts

honestly, I wanted to ask the obvious question on if the bots for RTCW can properly use knifes, Because whenever I came across a bot, More like a medic.   They don't use the knife at all.  


Is it me?  Or am I hallucinating? 



    Senior Member

  • Administrators
  • 543 posts

Bots use knife if they have no ammo.

You configure it in file  omni-bot/rtcw/scripts/weapons/weapon_knife.gm

this.PrimaryFire.SetDesirabilityRange(0, 48, 0.2);

The first and second parameters are range (distance to enemy).

The third parameter is desirability (priority). Primary weapons have desirability 0.7. Secondary weapons have desirability 0.3.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users