-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Aftershock: Foamcrete building gun #42495
Conversation
Ok, mimics, that'll show you! |
86df77e
to
cbbfb39
Compare
data/mods/Aftershock/effects.json
Outdated
"Sluggish", | ||
"Encased in foamcrete" | ||
], | ||
"desc": [ "A partial covering of foamcrete is slowing you down" ], |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please place it alphabetically.
src/projectile.cpp
Outdated
return; | ||
} | ||
} | ||
add_msg( m_bad, _( "The foamcrete falls without a wall to anchor against" ) ); |
There was a problem hiding this comment.
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 ); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Fields could already specify move cost in json, but the value did nothing.
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: Jianxiang Wang (王健翔) <qrox@sina.com>
Co-authored-by: LaVeyanFiend <51099123+LaVeyanFiend@users.noreply.github.com>
c35bc61
to
2401672
Compare
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 afoamcrete
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.