Gun Capture Removal

A new section for modding SOW Waterloo. Ask questions, post tips here.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Gun Capture Removal

Post by Marching Thru Georgia »

The actual artillery capture code is not actually in the AI code. Where would the best place be to bypass this 'feature'? I want to replace this with a dead gun, or no gun at all.
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: Gun Capture Removal

Post by mitra76 »

Is all in the hardcoded part; you can try, but I'm not sure if it works, to trigger the event eEvtDeath for the gun with TriggerEvent function when the cavalry is very near to the gun.
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: Gun Capture Removal

Post by Marching Thru Georgia »

What are the values for evtid parameter in TriggerEvent?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: Gun Capture Removal

Post by mitra76 »

set it to -1, it is not relevant in this case
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: Gun Capture Removal

Post by Marching Thru Georgia »

Assuming base.GetID() gives me the gun ID, this method does not seem to work. I even tried placing the TriggerEvent call at the top of CheckAllTargets. Suicide is not allowed? I can make the guns rout if the enemy comes within a certain distance but this is not an optimal solution. Any other ideas?
I can make this march and I will make Georgia howl.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: Gun Capture Removal

Post by mitra76 »

You can try to use ModMorale ( int pts ) to set the zero the morale points, probably it will not avoid the capture but perhaps the gun will run away from the field also after the capture
Visit my wargames blog: http://warforgame.blogspot.it/
Saddletank
Reactions:
Posts: 2171
Joined: Sat Dec 24, 2011 4:49 am

Re: Gun Capture Removal

Post by Saddletank »

I can make the guns rout if the enemy comes within a certain distance
How close can you make that? If its as little as 10 yards would that be good enough?

I'm thinking though that the gamedump then won't differentiate between routed guns and those 'routed' by capture.
HITS & Couriers - a different and realistic way to play SoW MP.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: Gun Capture Removal

Post by mitra76 »

It depends from when the loop call the unit AI; you can check the getcharger to be sure to being charged but the aggressor can be at various distances and you cannot know how far it will be when the next check is done (the gun could be already captured).
Visit my wargames blog: http://warforgame.blogspot.it/
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: Gun Capture Removal

Post by Marching Thru Georgia »

It depends from when the loop call the unit AI; you can check the getcharger to be sure to being charged but the aggressor can be at various distances and you cannot know how far it will be when the next check is done (the gun could be already captured).
Yes, this is what I have found. Setting the distance to 20 yds results in the guns being captured at least 50% of the time. That is not nearly good enough. It would be far better for NSD to just remove this ludicrous feature all together.
I can make this march and I will make Georgia howl.
User avatar
RebBugler
Reactions:
Posts: 4252
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Gun Capture Removal

Post by RebBugler »

The actual artillery capture code is not actually in the AI code. Where would the best place be to bypass this 'feature'? I want to replace this with a dead gun, or no gun at all.
So, your request is to have guns 'surrender' and disappear rather than be 'captured' and manned, regardless of OOB structure?
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Post Reply