Jump to content

Recommended Posts

What do you mean?

You resurrect because when there is no wilderness mode in the server, you get an event listener to become a ghost and to resurrect.

This is all in player_common.lua, just follow the "respawnfromghost" and its functions.

 

There are two types of resurrection:

1) You are given a reviver, like the telltale heart.

2) You haunt something with a huge haunt value, like the meat effigy.

 

All resurrections with sources start in 2 seconds, then the character switches from ghost to human stategraph, and goes into a different state, depending on the resurrection source. reviver_rebirth lasts 3,2 seconds and amulet_rebirth lasts 2,7 seconds.

@DarkXero, I mean would it be possible to add the resurrection in the Configure Mod section in the Mods menu.

	inst:ListenForEvent("death", function()    inst:DoTaskInTime(5, function()         inst:PushEvent("respawnfromghost", {source={name="Resurrection"}})	end) 
-- in modinfoconfiguration_options = {    {        name = "Resurrection",        label = "Resurrection",        options =         {            {description = "Yes", data = "Yes"},            {description = "No", data = "No"},        },        default = "Yes"    },}-- in modmainif GetModConfigData("Resurrection") == "Yes" then	AddPrefabPostInit("deadpool", function(inst)		inst:ListenForEvent("death", function()			inst:DoTaskInTime(5, function() 				inst:PushEvent("respawnfromghost", {source={name="Resurrection"}})			end)		end)	end)end

Or you can call the global version of GetModConfigData from within deadpool's prefab.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...