Page 1 of 1

Question about Damage system

PostPosted: Thu Jul 11, 2013 21:55
by BadWolf
Hello,

I'm currently working on modding a game for a private server for a group of friends. What I'm wanting to achieve is to turn off PvP, while maintaining player damage via falls, and the simple_mobs monsters. This is the plan currently, create a new damage group called "human" change the players damage group to human, and the mobs attack mode. I found the line "damage_groups = {fleshy=self.damage}" in mobs/api.lua, but I have not been able to find the code to set the players damage or armor group, or the part of the code that damages the player upon fall. First, where will I find these? Second, will this work, am I crazy?

PostPosted: Thu Jul 11, 2013 22:12
by PilzAdam
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
enable_pvp = false

in minetest.conf

PostPosted: Fri Jul 12, 2013 03:00
by BadWolf
Thanks, PilzAdam.

Although it seems like this also disables player-versus-Mob. That's not what I'd like, I'd like to be able to fight and be hit by the Simple_Mobs, Mobs, but not player vs player

PostPosted: Fri Jul 12, 2013 10:53
by PilzAdam
It only disables player versus player, everything else is unaffected.

PostPosted: Sat Jul 13, 2013 01:21
by BadWolf
I tried that switch though when I set enable_pvp = false. A Sand monster comes up to me and does no damage. I can still kill it, but it doesn't seem to be able to kill me

PostPosted: Fri Aug 09, 2013 05:34
by wcwyes
is it possible? to add new damage groups?