Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aftershock: Foamcrete building gun #42495

Merged
merged 12 commits into from
Aug 17, 2020

Conversation

John-Candlebury
Copy link
Member

@John-Candlebury John-Candlebury commented Jul 28, 2020

Summary

SUMMARY: Mods "Aftersock: Foamcrete for on the run building"

Purpose of change

Wanted some more tools that would let you manipulate the map in interesting ways.

Describe the solution

Foam gun shoots expanding structural foam. It slows creatures it hits, but more importantly it places foamcrete fields in the map. Once a tile has a foamcrete field of 3 intensity, the field is replaced by a solid wall. The walls aren't that great, they let smell through and are very easy to smash, so they are best used before combat to funnel enemies or for stealth by breaking LOS. You can also use it to mend holes in your house, or scratch that, make your whole house out of foamcrete.

Additionally you can use the gun to build bridges between all sort of gaps. If you aim the gun at a empty tile, you'll create a foamcrete floor if at least one of the adjacent tiles is a wall.

Testing

Spawn as the radio technician and try the gun out.

@John-Candlebury John-Candlebury added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mods: Aftershock Anything to do with the Aftershock mod Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics labels Jul 28, 2020
@John-Candlebury John-Candlebury changed the title Afs foam gun Aftershock: Foamcrete building gun Jul 28, 2020
@Night-Pryanik
Copy link
Contributor

Ok, mimics, that'll show you!

data/mods/Aftershock/items/ammo/foam.json Outdated Show resolved Hide resolved
data/mods/Aftershock/items/armor.json Outdated Show resolved Hide resolved
@John-Candlebury John-Candlebury force-pushed the afs_foam_gun branch 2 times, most recently from 86df77e to cbbfb39 Compare August 3, 2020 02:44
@ZhilkinSerg ZhilkinSerg self-assigned this Aug 3, 2020
"Sluggish",
"Encased in foamcrete"
],
"desc": [ "A partial covering of foamcrete is slowing you down" ],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Period in the end.

"sound": "crash!",
"sound_fail": "thump!",
"ter_set": "t_null",
"items": "wall_bash_results"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will spawn nails and planks from bashing a foamcrete wall.

src/creature.cpp Outdated
@@ -64,6 +64,7 @@ static const efftype_id effect_sleep( "sleep" );
static const efftype_id effect_stunned( "stunned" );
static const efftype_id effect_tied( "tied" );
static const efftype_id effect_zapped( "zapped" );
static const efftype_id effect_foamcrete_slow( "foamcrete_slow" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please place it alphabetically.

return;
}
}
add_msg( m_bad, _( "The foamcrete falls without a wall to anchor against" ) );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Period in the end.

}
add_msg( m_bad, _( "The foamcrete falls without a wall to anchor against" ) );
} else if( here.get_field_intensity( p, field_fd_foamcrete ) >= 2 ) {
here.bash( p, 9001, false, true, false );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will destroy everything here, including hulks and vehicles?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bash affects only the map, but it destroying vehicles is intended

@ZhilkinSerg ZhilkinSerg merged commit f4303bb into CleverRaven:master Aug 17, 2020
@ZhilkinSerg ZhilkinSerg removed their assignment Aug 17, 2020
@John-Candlebury John-Candlebury deleted the afs_foam_gun branch October 20, 2022 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON Mods: Aftershock Anything to do with the Aftershock mod Ranged Ranged (firearms, bows, crossbows, throwing), balance, tactics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants