| fyuyang5 | Date: Saturday, 17/September/2022, 2:47 PM | Message # 1 |
|
Knight
Group: Users
Messages: 22
Status: Offline
| hey guys, I found that just by adding the line SHOTALWAYSON to the md file of the unit, they can keep shooting like the Egyptian archers.
|
| |
|
|
| monosarcoidose | Date: Tuesday, 02/December/2025, 10:05 PM | Message # 2 |
|
Esquire
Group: Users
Messages: 1
Status: Offline
| For posterity sake, I will thank you for this hint, it's what finally made it work.
HOWEVER, it's not that simple, there's one little catch, you've got to actually add/edit 2 (two) lines into each unit's .md file
Code SHOTALWAYSON FREESHOTDIST 1200
Having both of these on a unit.md file is what turns the Fire/Shoot button into a Fire At Will/Hold Fire button. You can input whatever freeshotdist number, i guess, but this seemed all-encompassing for most if not all infantry and cavalry units. It doesn't seem to override the maximum range on weapons, so it's fine. This way, a formation on Fire at Will will NOT pursue stragglers, so they can hold their ground.
I took inspiration from feenix55555's patch (link here), which made the game more fun for me once more, therefore, I'll paste one full unit.md as example so you can see the abhorrence I've made that actually got it to work, thanks to fyuyang5 as well:
Code NAME GuardPruEgr MESSAGE Мушкетер_18в ICON U_FrnM18 USERLC 0 UnitsG17\PruEgrC SHADOW -125 -149 USERLC 1 UnitsG17\PruEgrR SHADOW -125 -149 USERLC 3 UnitsG17\PruEgrV SHADOW -125 -149 USERLC 4 UnitsG17\PruEgrH shadow -125 -149 USERLC 6 UnitsG17\PruEgrU SHADOW -125 -149 @REST 9 0 0 69 #STAND 9 1 0 0 @MOTION_L 9 1 0 23 #PATTACK 9 1 6 0 #UATTACK 9 1 6 0 @ATTACK 9 6 0 61 #PATTACK1 9 1 3 0 #UATTACK1 9 1 3 0 #ATTACK1 9 55 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 16 3 17 3 18 3 19 3 20 3 21 3 22 3 23 3 24 3 25 3 26 3 27 3 27 3 27 3 27 3 27 3 27 3 27 3 27 3 27 3 27 3 27 3 26 3 24 3 22 3 20 3 18 3 16 3 14 3 12 3 10 3 8 3 6 3 5 3 4 3 3 3 2 3 1 3 0 @DEATH 9 4 0 39 #PSTAND 9 1 6 0 #PSTAND1 9 1 3 0 #DEATHLIE1 120 1 4 39 4 40 4 41 4 42 4 43 4 44 4 45 4 46 4 45 4 44 4 43 4 42 4 41 4 40 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 4 39 #PSTAND3 9 1 3 55 #PATTACK3 9 54 3 129 3 129 3 128 3 127 3 126 3 125 3 124 3 123 3 122 3 121 3 120 3 119 3 118 3 117 3 116 3 115 3 114 3 113 3 112 3 111 3 110 3 109 3 108 3 107 3 106 3 105 3 104 3 103 3 102 3 101 3 100 3 84 3 83 3 82 3 81 3 80 3 79 3 78 3 77 3 76 3 75 3 74 3 73 3 72 3 71 3 70 3 69 3 68 3 67 3 66 3 65 3 64 3 63 3 62 #UATTACK3 9 54 3 62 3 63 3 64 3 65 3 66 3 67 3 68 3 69 3 70 3 71 3 72 3 73 3 74 3 75 3 76 3 77 3 78 3 79 3 80 3 81 3 82 3 83 3 84 3 100 3 101 3 102 3 103 3 104 3 105 3 106 3 107 3 108 3 109 3 110 3 111 3 112 3 113 3 114 3 115 3 116 3 117 3 118 3 119 3 120 3 121 3 122 3 123 3 124 3 125 3 126 3 127 3 128 3 129 3 129 #ATTACK3 9 94 3 64 3 64 3 64 3 65 3 66 3 67 3 68 3 69 3 70 3 71 3 72 3 73 3 74 3 75 3 76 3 77 3 78 3 79 3 80 3 81 3 82 3 83 3 84 3 85 3 86 3 87 3 88 3 89 3 90 3 91 3 92 3 93 3 94 3 95 3 96 3 97 3 98 3 99 3 100 3 85 3 86 3 87 3 88 3 89 3 90 3 91 3 92 3 93 3 94 3 95 3 96 3 97 3 98 3 99 3 100 3 85 3 86 3 87 3 88 3 89 3 90 3 91 3 92 3 93 3 94 3 95 3 96 3 97 3 98 3 99 3 100 3 84 3 83 3 82 3 81 3 80 3 79 3 78 3 77 3 76 3 75 3 74 3 73 3 72 3 71 3 70 3 69 3 68 3 67 3 66 3 65 3 64 3 64 3 64 #TRANSX3 9 54 3 129 3 129 3 128 3 127 3 126 3 125 3 124 3 123 3 122 3 121 3 120 3 119 3 118 3 117 3 116 3 115 3 114 3 113 3 112 3 111 3 110 3 109 3 108 3 107 3 106 3 105 3 104 3 103 3 102 3 101 3 100 3 84 3 83 3 82 3 81 3 80 3 79 3 78 3 77 3 76 3 75 3 74 3 73 3 72 3 71 3 70 3 69 3 68 3 67 3 66 3 65 3 64 3 63 3 62 #TRANS3X 9 54 3 62 3 63 3 64 3 65 3 66 3 67 3 68 3 69 3 70 3 71 3 72 3 73 3 74 3 75 3 76 3 77 3 78 3 79 3 80 3 81 3 82 3 83 3 84 3 100 3 101 3 102 3 103 3 104 3 105 3 106 3 107 3 108 3 109 3 110 3 111 3 112 3 113 3 114 3 115 3 116 3 117 3 118 3 119 3 120 3 121 3 122 3 123 3 124 3 125 3 126 3 127 3 128 3 129 3 129 SETACTIVEPOINT #ATTACK1 28 120 121 105 124 96 119 91 113 90 106 95 100 106 96 119 94 132 92 GEOMETRY 1 10 64 DAMAGE 0 50 DAMAGE 1 999 DAMAGE 3 0 LIFE 999999999 RECTANGLE 0 2 32 40 ATTACK_RADIUS 0 0 80 DET_RADIUS 0 0 200 ATTACK_RADIUS 1 25 1250 DET_RADIUS 1 25 1250 ATTACK_RADIUS 3 0 0 DET_RADIUS 3 0 0 WEAPON 1 SHOTFOGSTARTPISTOLSILNII SEARCH_ENEMY_RADIUS 1500 ZPOINTS 33 33 ATTACK_PAUSE 1 350 ATTACK_PAUSE 0 0 ATTACK_PAUSE 3 0 //Matheruals: //BODY,STONE,WOOD,IRON,AIR MATHERIAL 1 BODY CANKILL 2 BODY STENA PRICE 1 GOLD 40 WEAPONKIND 1 VISTREL WEAPONKIND 0 MECH BUILDSTAGES 300 SHOWDELAY RASTRATA_NA_VISTREL 1 1 COAL 30 VISION 8 USAGE EGER STANDGROUND INFO 0 30 FORCE 20 SLOWRECHARGE USETRANSX 0 USETRANSX 1 DAMAGEDEC 1 400 RAZBROS 2 UNITRADIUS 8 CANSHOOT STORMFORCE 20 FEARTYPE 0 2 FEARTYPE 1 1 FRIENDLYFIRE FEARFACTOR 2 28 FEARRADIUS 2 255 FEARFACTOR 0 1 FEARRADIUS 0 255 FEARFACTOR 1 14 FEARRADIUS 1 255 FEARFACTOR 3 56 FEARRADIUS 3 255 FEARTYPE 0 2 FEARTYPE 1 1 PSIXOZ 96 ARMATTACK MOVEBREAK #ATTACK3 MOVEBREAK #TRANSX3 MOVEBREAK #TRANS3X MOVEBREAK #PATTACK3 MOVEBREAK #UATTACK3 NOPAUSEDATTACK 0 BREAKANIMATION #REST TIREDCHANGE #ATTACK3 50 MOTIONSTYLE SINGLESTEP ROTATE 16 MOVEBREAK #MOTION_L BIGICON Interf3\Units_Pru 2 MINICON Interf3\Addon\Guard 5 INMENUICON Interf3\PruSmallMenuUnits 2 BIGCOLDWEAP Interf3\BigWeapon 0 BIGFIREWEAP Interf3\BigWeapon 1 //PORTBACKCOLOR 205 100 0 PORTBRANCH 0 RESCONSUMER FOOD 8 FREESHOTDIST 1200 TIREDCHANGE #MOTION_L 0 STANDGROUNDTIME 100 BUILDHOTKEY < BRANDOMPOS 30 BRANDOMSPEED 15 PORTBACKSPRITE 4 SOUND 3 #DEATH DEATH_PEH DONTTRANSFORMTOCHARGESTATE COLORVARIATION 16 SOUND 10 #ATTACK WEAP_SHTIK FEARSTART 9999 ATTPREVIEW2 1250 ATTPREVIEW1 25 SPEEDSCALEONTREES 60 SOUND 1 #REST ARMY SOUND 1 #MOTION_L PEHOTA_GO SELTYPE Round 1 1 SELTYPE_BRIG BrigRound 1 1 SOUND 1 #MOTION_L0 PEHOTA_GO SETACTIVEPOINT0 #ATTACK 5 MOTION_ON_ROAD_SOUND PEHOTA_GO_ONROAD SKILLDAMAGEMASK 1 SKILLDAMAGEFORMBONUS 10 SKILLDAMAGEFORMBONUSSTEP 30 PORTBACKSPRITE 3 INVISIBLEONMINIMAP RESCONSUMER GOLD 8 SHOTALWAYSON FREESHOTDIST 1200 TRANSFORMTOMEAT 15
[END]
This ...thing... is actually up and running, with all the imbalance and cheatyness I wanted on it and it works. Jaegers firing non-stop from the woods. Quote The trees, they speak german! Hope this helps anyone in a future, as I have wanted this for over 15 years and finally got it to work. I might release it as a mod somewhere, somewhen, we shall see.
Anyway, if I don't and you're reading this years from now: just add those lines to all units in the UnitsMD and GuardUnitsMD folders (you might even add it to buildings, shouldn't matter, I guess, it's what makes forts and towers shoot) (ignore the meat thing, I'm testing stuff to make bodies stay longer on the ground, it's not going well)
|
| |
|
|