AI is a weird creature

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

AI is a weird creature

Post 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?
Last edited by Vilespring on Sun Jul 13, 2014 6:41 am, edited 1 time in total.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: AI is a weird creature

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: AI is a weird creature

Post by Vilespring »

hm, I'll try that, thank you.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: AI is a weird creature

Post by Vilespring »

after messing around a bit with that, I got the scouts to switch guns in close quarters.
Thanks Swaffy!
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: AI is a weird creature

Post by Swaffy »

I lvoe your profile pic, bro. Dragons. <3
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: AI is a weird creature

Post by Vilespring »

Yeah, thanks, I feel like this one has much more personality than my old one! :D
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply