Question about Damage system

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

Question about Damage system

by BadWolf » Thu Jul 11, 2013 21:55

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?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Thu Jul 11, 2013 22:12

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
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Fri Jul 12, 2013 03:00

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
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri Jul 12, 2013 10:53

It only disables player versus player, everything else is unaffected.
 

BadWolf
Member
 
Posts: 42
Joined: Thu Jun 27, 2013 17:27

by BadWolf » Sat Jul 13, 2013 01:21

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
 

wcwyes
Member
 
Posts: 145
Joined: Wed Jul 31, 2013 22:42

by wcwyes » Fri Aug 09, 2013 05:34

is it possible? to add new damage groups?
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 6 guests

cron