Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Custom Bomb Addon
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Fire
Missions: Mission
Tags: v1.4.24
File Size
Posted
Updated
257.140 KB
May 14, 2022 @ 9:00am
Jun 1, 2022 @ 1:38am
2 Change Notes ( view )

Subscribe to download
Custom Bomb Addon

Description
This add-on allows you to grab a bomb with a freely determinable power of detonation.
Modifications are allowed.
Please give credit when redistributing.

sample vehicle
https://steamcommunity.com/sharedfiles/filedetails/?id=2815462416


command
?help_cmd : You can view help on the command.
?debug {bool} : switch debug mode
?guide : View a description of the parts needed to build the bomb.
?bomb_list : List of active bombs.
?spawn_sample : spawn sample vehicle. it is editable.
?info : addon info
?wtn : Update contents


the parts needed to build the bomb.
====vehicle====
bomb_set_button{push or toggle} (You need to press this before dropping the bomb)(need)
name:set_{bomb_name}/{bomb_power(float)}
ex. set_bomb1/0.5 (name="bomb1",power=0.5)
.
bomb_set_dial (output bomb power to this dial. if there is this dial in vehicle, you don't need to put bomb_set_button.)(optional)
name:{name(bomb1~bomb50)} / dial value:bomb power
ex. bomb1 (name="bomb1")
.
bomb_reset_button{push or toggle} (Press when you want to disable the bomb)(optional)
name:reset_{bomb_name}
ex. reset_bomb1 (name="bomb1")
===============
.
====bomb====
bomb_trigger_button{push or toggle} (need)
name:{bomb_name}_trg
ex. bomb1_trg (name="bomb1")
.
bomb_X_position{dial} (bomb GPS X)(need)
name:{bomb_name}_x
ex. bomb1_x (name="bomb1")
.
bomb_Y_position{dial} (bomb GPS Y)(need)
name:{bomb_name}_y
ex. bomb1_y (name="bomb1")
.
bomb_ALT_position{dial} (bomb ALT(height))(need)
name:{bomb_name}_alt
ex. bomb1_alt (name="bomb1")
============

Light explanation of how it works
1 : When the bomb set button is pressed, the vehicle's ID and the name of the button pressed are received from the programme called when the button is pressed. (This invoked programme only reacts when the player presses it, so the player needs to press it.)

2 : If the button name starts with the word set, the name and power of the bomb is taken from the button name and registered in the list together with the vehicle ID.

3 : Wait until the button { bomb name }_trg attached to the vehicle ID on the list is pressed.

4 : When the button is pressed, retrieve the coordinates of the bomb from the dial where the X and Y coordinates and the altitude value on the bomb are entered (At first, I was trying to retrieve the coordinates of the bomb by the position of the signboard, but I couldn't retrieve it with a separate merge and it blew itself up).

5 : Spawn the power of the explosion registered in the list at the coordinates of the bomb obtained earlier.

... and so on.

update
V3
Fixed a bug with buttons other than the bomb set button when the first three letters of the name contain the word "set".

V2
If a vehicle has a dial with the name "bomb1"~"bomb50", the value displayed on the dial is automatically registered as the explosion power when the vehicle is loaded.
The samples have been updated accordingly.

V1
release

Translated by DeepL
11 Comments
Yurikaze1942  [author] Sep 22, 2023 @ 9:08am 
It explodes on my PC, so maybe the weapons DLC or this add-on is not enabled. If not, and my add-on is buggy, I'm sorry.
However, this add-on is from a time when separated merges could not be tracked, so you may want to update it to be more user-friendly for the current version.
(I'm using translation software, so sorry if I sounded rude)
stormworksbla Sep 21, 2023 @ 5:34am 
i think its not works now. Pls update this. Its one of a kind :)
Yurikaze1942  [author] May 5, 2023 @ 2:46am 
I think it is still work.
Johnny Majster May 4, 2023 @ 4:32pm 
does it still works?
bar7is3001 Mar 10, 2023 @ 5:33am 
thank you
Yurikaze1942  [author] Mar 9, 2023 @ 4:48am 
You can increase the power of your bombs by increasing their power numbers

I'm sorry if my answer is wrong, as my English is not very good.
bar7is3001 Mar 9, 2023 @ 4:04am 
how do i make the bomb powerful?
Yurikaze1942  [author] Jun 1, 2022 @ 1:22am 
Ringo May 31, 2022 @ 6:17am 
Yes
Yurikaze1942  [author] May 15, 2022 @ 4:41pm 
sample vehicle?