[Mod] Bad Terrain [bad_terrain]

Post Reply
User avatar
duane
Member
Posts: 1703
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

[Mod] Bad Terrain [bad_terrain]

by duane » Post

This mod damages players when they stand on dangerous terrain. Anything with the "surface_hot" or "poison" group set will cause damage every three seconds. The surface_cold group will cause damage more slowly. Players are informed in chat when they take damage from nodes. Ice and snow are automatically added to the surface_cold group.

It also provides support for traps set off by a player coming too close. A trap node must have two groups set, the "trap" group and a group specific for the trap type, including:

electricity_trap
explosive_trap (my favorite)
fire_trap
ice_trap (entombs the player)
lava_trap (set this in a low ceiling)
slippery_floor_trap

This is mostly support for my other mods, but you might want to play with it.


The source is available on github.

Code: LGPL2
Textures: CC0

Mod dependencies: default

Download: https://github.com/duane-r/bad_terrain/ ... master.zip
Believe in people and you don't need to believe anything else.

User avatar
duane
Member
Posts: 1703
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Problems

by duane » Post

None so far
Believe in people and you don't need to believe anything else.

User avatar
azekill_DIABLO
Member
Posts: 7497
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Bad Terrain [bad_terrain]

by azekill_DIABLO » Post

hey, why no one saw this :D

it's excellent!

Skamiz Kazzarch
Member
Posts: 200
Joined: Fri Mar 09, 2018 20:34
GitHub: Skamiz
In-game: Skamiz
Location: la lojbaugag.

Re: [Mod] Bad Terrain [bad_terrain]

by Skamiz Kazzarch » Post

Trying to remake your setup described in your mapgen mod thread and got the error that dinv is a null variable on line 192. An optional dependency on dinv fixed it.

User avatar
duane
Member
Posts: 1703
Joined: Wed Aug 19, 2015 19:11
GitHub: duane-r
Location: Oklahoma City
Contact:

Re: [Mod] Bad Terrain [bad_terrain]

by duane » Post

Skamiz Kazzarch wrote:Trying to remake your setup described in your mapgen mod thread and got the error that dinv is a null variable on line 192. An optional dependency on dinv fixed it.
Thanks. I've added that.
Believe in people and you don't need to believe anything else.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests