Page 1 of 1

AI is a weird creature

Posted: Thu Jun 12, 2014 6:56 pm
by Vilespring
I have done some modding recently, some tweaks here and there, new vehicles form random things (not added on map, only spawned by debugger for now) and I recently modified the kits, and it resulted in an odd but good thing!

Changes to guns
medic's SMG - made slot 4
rocket launcher - made slot 4, has 10 rockets now
grenades - 4 grenades now
all rifles besides No4 and its scoped variant - doubled ammunition
No4 and its scoped variant - doubled magazine size

changes to kits
scout - removed grenades, added SMG
assault - nothin'
anti-tank - removed grenades, added rifle
medic - removed SMG, added rifle
engineer - nothin'

and, even though is has nothing to do with my more epic kits (I like the kits much more, it's more like specialized infantry than just what the kit is) the bots are actually using half-tracks now! :lol:

well, and one question. The scouts are not using their SMGs in close quarters, how do I fix that?

Re: AI is a weird creature

Posted: Thu Jun 12, 2014 7:14 pm
by Swaffy
Open up your Objects.rfa and go to your sniper rifle. Open up the AI/Weapons.con file.
  • rem *** Add NO4***
    weaponTemplate.create SniperNo4AI
    weaponTemplate.burst 0
    weaponTemplate.indirect 0
    weaponTemplate.deviation 2.0
    weaponTemplate.minRange 100.0
    weaponTemplate.maxRange 800.0
    weaponTemplate.weaponActivate PIMenuSelect3
    weaponTemplate.weaponFire PIFire
    weaponTemplate.setStrength Infantry 5.0
    weaponTemplate.setStrength LightArmour 0.0
    weaponTemplate.setStrength HeavyArmour 0.0
    weaponTemplate.setStrength NavalArmour 0.0
    weaponTemplate.setStrength Submarine 0.0
    weaponTemplate.setStrength Air 1.0
    weaponTemplate.setSoundSphereRadius 600.0
    weaponTemplate.exitVelocity 605
Now go to your SMG's AI/Weapons.con file.
  • rem *** Add thompson***
    weaponTemplate.create ThompsonAI
    weaponTemplate.burst 1
    weaponTemplate.indirect 0
    weaponTemplate.minRange 0.0
    weaponTemplate.maxRange 100.0

    weaponTemplate.weaponActivate PIMenuSelect3
    weaponTemplate.weaponFire PIFire
    weaponTemplate.setStrength Infantry 4.0
    weaponTemplate.setStrength LightArmour 0.0
    weaponTemplate.setStrength HeavyArmour 0.0
    weaponTemplate.setStrength NavalArmour 0.0
    weaponTemplate.setStrength Submarine 0.0
    weaponTemplate.setStrength Air 0.0
    weaponTemplate.setSoundSphereRadius 100.0
    weaponTemplate.exitVelocity 305
You can use that method, or just make the "weaponTemplate.setStrength Infantry #.#" the same for both weapons.

Re: AI is a weird creature

Posted: Thu Jun 12, 2014 9:50 pm
by Vilespring
hm, I'll try that, thank you.

Re: AI is a weird creature

Posted: Sun Jul 13, 2014 6:42 am
by Vilespring
after messing around a bit with that, I got the scouts to switch guns in close quarters.
Thanks Swaffy!

Re: AI is a weird creature

Posted: Mon Jul 14, 2014 2:34 am
by Swaffy
I lvoe your profile pic, bro. Dragons. <3

Re: AI is a weird creature

Posted: Mon Jul 14, 2014 4:53 pm
by Vilespring
Yeah, thanks, I feel like this one has much more personality than my old one! :D