Cossacks 3

Cossacks 3

134 ratings
Cannons Attack Automatically (see description)
2
   
Award
Favorite
Favorited
Unfavorite
Units
Tags: AI
File Size
Posted
Updated
619.814 KB
24 Jul, 2018 @ 3:47pm
14 Sep, 2018 @ 10:31am
4 Change Notes ( view )

Subscribe to download
Cannons Attack Automatically (see description)

Description
I made this mod so that people wouldn't have to download various other mods that do the same thing but come with a lot of unwanted extra features.

The only thing this mod does is make standard cannons attack automatically. I believe howitzers do this already; mortars do not do this because "buildings only" and multi-barreled cannons are trash anyway*.

This does work in multiplayer, I think all players need it but it's possible they don't. I would advise that everyone does have it at the same time though for fairness.

This mod edits unit behaviour scripts and is likely to conflict with other mods that do the same as they are mostly all included under a single file. It also might not work if you have any DLC that add units, since i don't have those DLC i can't verify.

If the mod doesn't work because of a conflict, follow these steps to make the change yourself:

1. Go to: [your steam directory]\steamapps\workshop\content\333420\
2. Look through the folders to find whatever other mod contains the file: "\data\scripts\lib\unit.script"
3. Open \data\scripts\lib\unit.script with a text editor
4. Find (ctrl+f) line:

'cannon' : begin

5. Scroll down until you find: SetObjBaseSearchBuildVisionScore
6. Change the first number (by default it is 500) to 2000 so it looks something like this:

SetObjBaseSearchBuildVisionScore(objprop, objbase, 2000, 2400{3840}, 1{8}, 50);

7. Save
8. In case the conflicting mod has an update, it will revert the change you have made, so go back to step 1 again.

It's actually that simple!
43 Comments
Penumbra 1 Mar @ 9:15am 
cannons do not fire automatically , _,
ZzaphodD 12 Jun, 2024 @ 12:53pm 
Have no other mods or DLC - but cannons do not fire automatically. :-(
Domiś 6 Nov, 2023 @ 9:32am 
nice i like :>
Edztえどぜて 28 Jul, 2023 @ 7:31am 
is there a mod to guide their aim more accurate at moving targets like fast ships or inf, also make any warships that have cannons to be able to use same ability as howtz+cann's "ground atacc" order, would be really useful
19Peej 23 Jul, 2023 @ 9:34pm 
Works for me aswell
Melkor 17 Jul, 2023 @ 1:11am 
The mod works.
Ragnaman 5 Jul, 2023 @ 12:43pm 
Didnt work for me, and i dont use any other mods that change units, only graphical mods.
Ragnaman 5 Jul, 2023 @ 10:54am 
Now if only bombards would attack buildings automatically, that would be great.
Ragnaman 5 Jul, 2023 @ 10:50am 
fucking great mod, AI cannons devastate my armies while my cannons all strike a single unit out of 100.
an entire Roman legion 10 Apr, 2023 @ 5:46am 
my buddy and I both got this mod but when we try to join each other the game says we have different version, any ideas?