Gun Capture Removal
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
Gun Capture Removal
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.
Re: Gun Capture Removal
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/
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
Re: Gun Capture Removal
What are the values for evtid parameter in TriggerEvent?
I can make this march and I will make Georgia howl.
Re: Gun Capture Removal
set it to -1, it is not relevant in this case
Visit my wargames blog: http://warforgame.blogspot.it/
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
Re: Gun Capture Removal
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.
Re: Gun Capture Removal
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/
-
- Reactions:
- Posts: 2171
- Joined: Sat Dec 24, 2011 4:49 am
Re: Gun Capture Removal
How close can you make that? If its as little as 10 yards would that be good enough?I can make the guns rout if the enemy comes within a certain distance
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.
Re: Gun Capture Removal
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/
-
- Reactions:
- Posts: 1769
- Joined: Mon Mar 29, 2010 9:56 pm
Re: Gun Capture Removal
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.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).
I can make this march and I will make Georgia howl.
- RebBugler
- Reactions:
- Posts: 4252
- Joined: Sun Aug 03, 2008 12:51 am
- Location: Ouachita Mountains, Arkansas
Re: Gun Capture Removal
So, your request is to have guns 'surrender' and disappear rather than be 'captured' and manned, regardless of OOB structure?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.
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...