Skip to content

Commit

Permalink
More vanilla-like plats and doors
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Jun 21, 2024
1 parent d7a1dc1 commit 676d26b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions doomdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ typedef int fixed_t;
#endif

#ifdef THINKERS_30HZ
#define THINKERS_TICS 1
#else
#define THINKERS_TICS 2
#else
#define THINKERS_TICS 4
#endif

#define ANG45 0x20000000
Expand Down
6 changes: 3 additions & 3 deletions p_doors.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void T_VerticalDoor (vldoor_t *door)
break;
case close30ThenOpen:
door->direction = 0;
door->topcountdown = 15*30*THINKERS_TICS;
door->topcountdown = 35*30*THINKERS_TICS;
break;
default:
break;
Expand Down Expand Up @@ -411,7 +411,7 @@ void P_SpawnDoorCloseIn30 (sector_t *sec)
door->direction = 0;
door->type = normal;
door->speed = VDOORSPEED;
door->topcountdown = 30 * 15 * THINKERS_TICS;
door->topcountdown = 30 * 35 * THINKERS_TICS;
}

/*================================================================== */
Expand All @@ -435,6 +435,6 @@ void P_SpawnDoorRaiseIn5Mins (sector_t *sec, int secnum)
door->topheight = P_FindLowestCeilingSurrounding(sec);
door->topheight -= 4*FRACUNIT;
door->topwait = VDOORWAIT;
door->topcountdown = 5 * 60 * 15 * THINKERS_TICS;
door->topcountdown = 5 * 60 * 35 * THINKERS_TICS;
}

4 changes: 2 additions & 2 deletions p_plats.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int EV_DoPlat(line_t *line,plattype_e type,int amount)
if (plat->low > sec->floorheight)
plat->low = sec->floorheight;
plat->high = sec->floorheight;
plat->wait = 15*PLATWAIT;
plat->wait = 35*PLATWAIT;
plat->status = down;
S_StartPositionedSound((void *)sec,sfx_pstart,&P_SectorOrg);
break;
Expand All @@ -165,7 +165,7 @@ int EV_DoPlat(line_t *line,plattype_e type,int amount)
plat->high = P_FindHighestFloorSurrounding(sec);
if (plat->high < sec->floorheight)
plat->high = sec->floorheight;
plat->wait = 15*PLATWAIT;
plat->wait = 35*PLATWAIT;
plat->status = P_Random()&1;
S_StartPositionedSound((void *)sec,sfx_pstart,&P_SectorOrg);
break;
Expand Down
6 changes: 3 additions & 3 deletions p_spec.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ typedef struct
VINT type;
} plat_t;

#define PLATWAIT 3*2/THINKERS_TICS /* seconds */
#define PLATWAIT 3/THINKERS_TICS /* seconds */
#define PLATSPEED (FRACUNIT*THINKERS_TICS)
#define MAXPLATS 30

Expand Down Expand Up @@ -267,8 +267,8 @@ typedef struct
VINT topcountdown; /* when it reaches 0, start going down */
} vldoor_t;

#define VDOORSPEED FRACUNIT*3*THINKERS_TICS
#define VDOORWAIT 140/THINKERS_TICS
#define VDOORSPEED FRACUNIT*2*THINKERS_TICS
#define VDOORWAIT 150/THINKERS_TICS

void EV_VerticalDoor (line_t *line, mobj_t *thing);
int EV_DoLockedDoor(line_t* line, vldoor_e type, mobj_t* thing);
Expand Down

0 comments on commit 676d26b

Please sign in to comment.