Moderator: GZDoom Developers
SPZ1 wrote:I use a swimmable sector to simulate a ladder.
This would also allow the player to drown on the ladder.
script 0 (int down)
{
int z = GetActorZ (0), >> 0;
if (GetActorPitch (ActivatorTID ()) > 1024) down = !down;
if ((down && z > LADDER_BOTTOM && z < LADDER_TOP + 24) || (!down && z < LADDER_TOP))
{
SetPlayerProperty (0, 1, PROP_FLY);
ThrustThingZ (0, 16, Down, 0);
SetLineBlocking (LADDER_FRONT, BLOCK_CREATURES);
SetLineBlocking (LADDER_BACK, BLOCK_CREATURES);
ladder = 1;
}
else
{
SetPlayerProperty (0, 0, PROP_FLY);
SetLineBlocking (LADDER_FRONT, BLOCK_NOTHING);
SetLineBlocking (LADDER_BACK, BLOCK_NOTHING);
if (ladder)
{
if (!down) ThrustThing (128, 8);
ladder = 0;
}
}
}
Graf Zahl wrote:Hacks like this is what commonly breaks mods.
Return to Closed Feature Suggestions
Users browsing this forum: No registered users and 1 guest