Gents,
Does anybody know where the code is that handles...
(i) test to check if a unit runs over a mine?
(ii) calculations for actions when a unit runs over a mine?
(iii) text related to mines?
Thanks!
Where's the code that handles Mines?
Moderators: Slitherine Core, BA Moderators
-
GottaLove88s
- Lieutenant-General - Do 217E

- Posts: 3151
- Joined: Fri Apr 06, 2012 6:18 pm
- Location: Palau
Where's the code that handles Mines?
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
-
AndrewGardner
- Slitherine

- Posts: 535
- Joined: Tue Nov 13, 2012 6:24 pm
Re: Where's the code that handles Mines?
The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF
The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF
The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
-
Amaris
- Captain - Heavy Cruiser

- Posts: 929
- Joined: Fri Jul 23, 2010 11:08 am
- Location: France
- Contact:
Re: Where's the code that handles Mines?
And you can create your own scripted objects like my naval mine 
“Take care, my friend; watch your six, and do one more roll… just for me.”
-
GottaLove88s
- Lieutenant-General - Do 217E

- Posts: 3151
- Joined: Fri Apr 06, 2012 6:18 pm
- Location: Palau
Re: Where's the code that handles Mines?
Good reminder Alex... I need to check out how you handled the naval mines! Merci Monsieur! 
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
-
GottaLove88s
- Lieutenant-General - Do 217E

- Posts: 3151
- Joined: Fri Apr 06, 2012 6:18 pm
- Location: Palau
Re: Where's the code that handles Mines?
Thanks Andrew, Much appreciated!AndrewGardner wrote:The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF
The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
-
GottaLove88s
- Lieutenant-General - Do 217E

- Posts: 3151
- Joined: Fri Apr 06, 2012 6:18 pm
- Location: Palau
Re: Where's the code that handles Mines?
Hi Andrew,AndrewGardner wrote:The mines in Husky are controlled by:
Data\objects\Sicily\OBJECTS.BSF (reaction script referenced by objects.txt)
Data\scripts\MineTools.BSF
The mine object in the Sicily set is usable in any campaign just by placing it in the editor.
I see that Silicy's Objects.txt has a SCRIP_REACT minefield, but where is that script?
Minetools.bsf doesn't appear to have any text calls, but when I drive over a mine I see a UI flash up, "Minefield! Send engineers to clean it!"
Any idea where that text is called from? I can't find it...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Re: Where's the code that handles Mines?
Found something that might help in C:\Program Files\Slitherine\Battlefield Academy\Data\objects\Sicily
Have a look at the Objects.BSF file in there.
Have a look at the Objects.BSF file in there.
Cheers
Richcat
Richcat
-
GottaLove88s
- Lieutenant-General - Do 217E

- Posts: 3151
- Joined: Fri Apr 06, 2012 6:18 pm
- Location: Palau
Re: Where's the code that handles Mines?
Genius! Exactly what I needed... Was looking in Objects.txt, not Objects.bsf, DOH!
Thanks guys...
Thanks guys...
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347

