Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » AI using melee attacks
AI using melee attacks [message #304017] Tue, 18 December 2007 12:21 Go to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
Alright, so I'm sort of working on a mod in somewhat-sort of-not-really-secrecy, and there's some melee weapons and some bots.

Thing is, the bots are incredibly retarded and never use the melee attacks right. I basically made a modified version of the Melee_AI weapon and made it stronger. Even made it have a spread fire so it'd have more of a chance to hit. However, the AI is still really stupid with it.

They'd run up close to me, then just stop for a bit, then attack. Problem is, the attack [I]almost never hits.[I] The only time it DOES hit is maybe if I'm moving or I'm at a position that's not directly in front of them. I want it so if you're in range of their melee attack (AKA, right next to them), you're pretty much screwed.

Short version: Any scripts to make AI less dumb with melee attacks/A script to make them pretty much never miss with their weapon?

(I'm probably just being stupid and there's a really simple solution to getting it work.)


Toggle Spoiler
Re: AI using melee attacks [message #304476 is a reply to message #304017] Thu, 20 December 2007 11:24 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Well to fix the accuracy problem all you have to do is change this:
index.php?t=getfile&id=4878&private=0
to shoulder (you only have to do this for AI, and it makes them run like complete retards but its the only way to fix it (handGun, hip or launcher works as well (but I think Handgun crashes the game, if not its launcher))).
  • Attachment: pic.PNG
    (Size: 49.81KB, Downloaded 132 times)


Previous Topic: anime hude ^_^
Next Topic: Few questions
Goto Forum:
  


Current Time: Thu Dec 12 00:03:23 MST 2024

Total time taken to generate the page: 0.00643 seconds