Jump to content

Players resurrect at the point that is too near water after drown


KXWl1
  • DLC VERSION - IMPORTANT!: Hamlet Fixed

The thing happens to Hamlet's Lily Pond, and SW ocean when the save is compatible with Hamlet. Component files 'resurrectable' (line 30-52):

		if IsDLCEnabled(PORKLAND_DLC) then
			local landtile = false
			local x,y,z = self.inst.Transform:GetWorldPosition()
			local range = 6
			local startangle = math.random() * (2*PI)
			while not landtile do
				for i=0,12 do
					local newangle = startangle + (i * (2*PI/12) )
					local offset = Vector3(range * math.cos( newangle ), 0, -range * math.sin( newangle ))
					
					local tile = GetWorld().Map:GetTileAtPoint(x+offset.x, 0, z+offset.z)
					if not GetWorld().Map:IsWater(tile) and tile ~= GROUND.IMPASSABLE and tile ~= GROUND.INVALID then
						landtile ={x=x+offset.x,y=0, z=z+offset.z}
					end
				end
				range = range + 4
			end
			if landtile then
				local beachresurrector = SpawnPrefab("beachresurrector")
				beachresurrector.Transform:SetPosition(landtile.x,landtile.y,landtile.z)
				beachresurrector.persists = false				    
			end
		end

 


Steps to Reproduce

1. Get the boat ready

2. c_give('amulet'), equip it

3. find a way to let the boat breaks, and you drown.

4. you will wake up at the point that is too near water.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


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...