Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » bots (switching weapons)
bots [message #360255] Thu, 27 November 2008 18:05 Go to next message
medmech12 is currently offline  medmech12
Messages: 32
Registered: December 2007
Karma: 0
Recruit
DOes anybody know how to make a bot switch weapons, other than using just one weapon?
Re: bots [message #360472 is a reply to message #360255] Sat, 29 November 2008 04:43 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
like the agt Rocked Over ?
Re: bots [message #360542 is a reply to message #360255] Sat, 29 November 2008 11:37 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Easy. I've done it in my AI Scripts. Razz

If you mean Leveledit...Sorry, dunno how. Sad
Re: bots [message #360849 is a reply to message #360255] Mon, 01 December 2008 01:58 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Well I am at work at the moment, but I am fairly sure what your asking for is not catered for in any existing scripts in 3.4.4, however it is possible, if you know some c++ and are willing to compile your own scripts.dll.

If I remember correctly (again, I am at work so I can't actually check at the moment) the engine call

Commands->Select_Weapon(obj,"name of weapon preset");


will cause the infantry unit (or any other ArmedGameObj) to select the weapon with the given name.

If I remember tonight I might write some simple infantry AI scripts which feature this behaviour and perhaps hook into my more complex AI rountines (such as target prioritisation etc) for inclusion in 4.0...


http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: Changing Chat Fonts?
Next Topic: RETICLES !
Goto Forum:
  


Current Time: Mon Dec 30 16:22:17 MST 2024

Total time taken to generate the page: 0.00642 seconds