Page 1 of 1
Where's the code that handles Mines?
Posted: Thu May 30, 2013 9:05 pm
by GottaLove88s
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!
Re: Where's the code that handles Mines?
Posted: Thu May 30, 2013 9:30 pm
by AndrewGardner
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.
Re: Where's the code that handles Mines?
Posted: Fri May 31, 2013 7:19 am
by Ranger
too cool
Re: Where's the code that handles Mines?
Posted: Fri May 31, 2013 4:41 pm
by Amaris
And you can create your own scripted objects like my naval mine

Re: Where's the code that handles Mines?
Posted: Mon Jun 03, 2013 9:54 am
by GottaLove88s
Good reminder Alex... I need to check out how you handled the naval mines! Merci Monsieur!

Re: Where's the code that handles Mines?
Posted: Mon Jun 03, 2013 10:39 am
by GottaLove88s
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.
Thanks Andrew, Much appreciated!

Re: Where's the code that handles Mines?
Posted: Tue Jun 04, 2013 6:47 am
by GottaLove88s
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.
Hi Andrew,
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...
Re: Where's the code that handles Mines?
Posted: Tue Jun 04, 2013 9:54 am
by Richcat
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.
Re: Where's the code that handles Mines?
Posted: Tue Jun 04, 2013 10:02 am
by GottaLove88s
Genius! Exactly what I needed... Was looking in Objects.txt, not Objects.bsf, DOH!
Thanks guys...
