Skip to content

Commit

Permalink
Tidy up puerile, convoluted, or offensive language.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaracenOne committed Apr 8, 2024
1 parent 8a8a2e3 commit 60703cc
Show file tree
Hide file tree
Showing 26 changed files with 241 additions and 244 deletions.
200 changes: 100 additions & 100 deletions TOMB4/game/raghead.cpp → TOMB4/game/baddy.cpp

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions TOMB4/game/baddy.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once
#include "../global/types.h"

void InitialiseBaddy(short item_number);
void BaddyControl(short item_number);
50 changes: 25 additions & 25 deletions TOMB4/game/deltapak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include "../tomb4/mod_config.h"
#include "../tomb4/tomb4plus/t4plus_objects.h"

static short frig_shadow_bbox[6] = { -165, 150, -777, 1, -87, 78 };
static short frig_jeep_shadow_bbox[6] = { -600, 600, -777, 1, -600, 600 };
static short cutseq_shadow_bbox[6] = { -165, 150, -777, 1, -87, 78 };
static short cutseq_jeep_shadow_bbox[6] = { -600, 600, -777, 1, -600, 600 };
static short troop_chat_ranges4[14] = { 485, 587, 558, 625, 639, 652, 661, 721, 729, 793, 805, 872, -1, -1 };
static short lara_chat_ranges6[4] = { 257, 345, -1, -1 };
static short voncroy_chat_ranges6[4] = { 6, 209, -1, -1 };
Expand Down Expand Up @@ -124,7 +124,7 @@ static char old_status_flags[16];

void handle_cutseq_triggering(long name)
{
long n, goin, fuck;
long n, goin, cutseq_id;

if (!cutseq_num)
return;
Expand Down Expand Up @@ -152,7 +152,7 @@ void handle_cutseq_triggering(long name)
if (cutseq_num == 11)
lara.vehicle = NO_ITEM;

fuck = 0;
cutseq_id = 0;
n = lara_item->current_anim_state;

if (ScreenFadedOut)
Expand All @@ -162,11 +162,11 @@ void handle_cutseq_triggering(long name)
if (!cutseq_busy_timeout)
{
cutseq_busy_timeout = 0;
fuck = 1;
cutseq_id = 1;
}

if (cutseq_num == 27 || lara.gun_status == LG_HANDS_BUSY || lara.gun_status == LG_NO_ARMS && !lara.flare_control_left ||
n == AS_ALL4S || n == AS_CRAWL || n == AS_ALL4TURNL || n == AS_ALL4TURNR || n == AS_CRAWLBACK || fuck)
n == AS_ALL4S || n == AS_CRAWL || n == AS_ALL4TURNL || n == AS_ALL4TURNR || n == AS_CRAWLBACK || cutseq_id)
{
if (!(gfLevelFlags & GF_YOUNGLARA))
{
Expand Down Expand Up @@ -236,15 +236,15 @@ void handle_cutseq_triggering(long name)

ScreenFadedOut = 0;
numnailed = 0;
fuck = cutseq_num;
cutseq_id = cutseq_num;

if (cutseq_control_routines[fuck].end_func)
cutseq_control_routines[fuck].end_func();
if (cutseq_control_routines[cutseq_id].end_func)
cutseq_control_routines[cutseq_id].end_func();

cutseq_trig = 0;
GLOBAL_playing_cutseq = 0;

if (fuck == 1)
if (cutseq_id == 1)
{
FlipMap(0);
cutseq_num = 2;
Expand All @@ -254,7 +254,7 @@ void handle_cutseq_triggering(long name)
}
else if (bDoCredits)
{
switch (fuck)
switch (cutseq_id)
{
case 28:
cutseq_num = 29;
Expand All @@ -271,7 +271,7 @@ void handle_cutseq_triggering(long name)
Load_and_Init_Cutseq(cutseq_num);
cutseq_trig = 2;
}
else if (fuck == 7 || fuck == 8)
else if (cutseq_id == 7 || cutseq_id == 8)
{
cutseq_num = 9;
Load_and_Init_Cutseq(9);
Expand All @@ -284,8 +284,8 @@ void handle_cutseq_triggering(long name)
S_StartSyncedAudio(GLOBAL_cutme->audio_track);
}
else if (
(get_game_mod_global_info()->tr_times_exclusive && (fuck == 31)) ||
(!get_game_mod_global_info()->tr_times_exclusive && ((fuck == 9 || fuck == 11 || fuck == 15 || fuck == 23)))
(get_game_mod_global_info()->tr_times_exclusive && (cutseq_id == 31)) ||
(!get_game_mod_global_info()->tr_times_exclusive && ((cutseq_id == 9 || cutseq_id == 11 || cutseq_id == 15 || cutseq_id == 23)))
)
{
gfLevelComplete = gfCurrentLevel + 1;
Expand Down Expand Up @@ -515,7 +515,7 @@ short GetTrackWord(long off, char* packed, long packmethod)
return ret;
}

void frigup_lara()
void fix_lara_for_cutseq()
{
long* bone;

Expand Down Expand Up @@ -551,9 +551,9 @@ void frigup_lara()
}

if (cutseq_num == 12)
GLaraShadowframe = frig_jeep_shadow_bbox;
GLaraShadowframe = cutseq_jeep_shadow_bbox;
else
GLaraShadowframe = frig_shadow_bbox;
GLaraShadowframe = cutseq_shadow_bbox;
}

void updateAnimFrame(PACKNODE* node, int flags, short* frame)
Expand Down Expand Up @@ -937,7 +937,7 @@ void eleventh_cutseq_init()
{
ITEM_INFO* item;

item = find_a_fucking_item(ANIMATING5);
item = find_an_item_with_object_type(ANIMATING5);
old_status_flags[numnailed] = item->status;
item->status = ITEM_INVISIBLE;
item->flags &= ~IFL_CODEBITS;
Expand Down Expand Up @@ -1037,7 +1037,7 @@ void fourteen_control()

if (GLOBAL_cutseq_frame == 393)
{
item = find_a_fucking_item(SARCOPHAGUS_CUT);
item = find_an_item_with_object_type(SARCOPHAGUS_CUT);
item->flags = IFL_TRIGGERED;
item->mesh_bits = 3;
}
Expand Down Expand Up @@ -1254,7 +1254,7 @@ void twentyone_end()

void twentythree_init()
{
horus_item_thing = find_a_fucking_item(HORUS_STATUE);
horus_item_thing = find_an_item_with_object_type(HORUS_STATUE);
}

void twentythree_control()
Expand Down Expand Up @@ -1346,7 +1346,7 @@ void twentyfive_end()
{
ITEM_INFO* item;

item = find_a_fucking_item(ANIMATING5);
item = find_an_item_with_object_type(ANIMATING5);
item->flags |= IFL_CODEBITS;
item->status = old_status_flags[numnailed];
numnailed++;
Expand All @@ -1357,7 +1357,7 @@ void twentyfive_init()
{
ITEM_INFO* item;

item = find_a_fucking_item(ANIMATING5);
item = find_an_item_with_object_type(ANIMATING5);
old_status_flags[numnailed] = item->status;
item->status = ITEM_INVISIBLE;
item->flags &= ~IFL_CODEBITS;
Expand All @@ -1374,7 +1374,7 @@ void twentyseven_init()
{
ITEM_INFO* item;

item = find_a_fucking_item(ANIMATING4);
item = find_an_item_with_object_type(ANIMATING4);
item->flags &= ~IFL_CODEBITS;
cutseq_meshbits[1] &= ~0x200;
lara.questitems = 0;
Expand All @@ -1390,7 +1390,7 @@ void twentyseven_end()
{
ITEM_INFO* item;

item = find_a_fucking_item(ANIMATING5);
item = find_an_item_with_object_type(ANIMATING5);
item->status = ITEM_ACTIVE;
DelsHandyTeleportLara(18982, 18176, 15841, -16184);
FlipMap(8);
Expand Down Expand Up @@ -1773,7 +1773,7 @@ void untrigger_item_in_room(long room_number, long object_number)
}
}

ITEM_INFO* find_a_fucking_item(long object_number)
ITEM_INFO *find_an_item_with_object_type(long object_number)
{
ITEM_INFO* item;

Expand Down
4 changes: 2 additions & 2 deletions TOMB4/game/deltapak.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void InitPackNodes(NODELOADHEADER* lnode, PACKNODE* pnode, char* packed, long nu
void DecodeAnim(PACKNODE* node, long num_nodes, long frame, long flags);
short DecodeTrack(char* packed, RTDECODE* decode);
short GetTrackWord(long off, char* packed, long packmethod);
void frigup_lara();
void fix_lara_for_cutseq();
void updateAnimFrame(PACKNODE* node, int flags, short* frame);
void* cutseq_malloc(long size);
void finish_cutseq();
Expand Down Expand Up @@ -88,7 +88,7 @@ void handle_lara_chatting(short* _ranges);
void handle_actor_chatting(long speechslot, long node, long slot, long objslot, short* _ranges);
void trigger_item_in_room(long room_number, long object_number);
void untrigger_item_in_room(long room_number, long object_number);
ITEM_INFO* find_a_fucking_item(long object_number);
ITEM_INFO* find_an_item_with_object_type(long object_number);
void special2_end();
void special2_init();
void special3_end();
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/dog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void DogControl(short item_number)
if (!CreatureActive(item_number))
return;

MOD_LEVEL_OBJECT_CUSTOMIZATION *mod_object_customization = get_game_mod_level_object_customization_for_slot(gfCurrentLevel, FUCKED_UP_DOG);
MOD_LEVEL_OBJECT_CUSTOMIZATION *mod_object_customization = get_game_mod_level_object_customization_for_slot(gfCurrentLevel, DOG);

angle = 0;
head_x = 0;
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ long DrawPhaseGame()
phd_PopMatrix();

if (GLOBAL_playing_cutseq)
frigup_lara();
fix_lara_for_cutseq();

SetLaraUnderwaterNodes();
DrawRooms(camera.pos.room_number);
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ void RubbleFX(ITEM_INFO* item)
{
ITEM_INFO* eq;

eq = find_a_fucking_item(EARTHQUAKE);
eq = find_an_item_with_object_type(EARTHQUAKE);

if (eq)
{
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/guide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void GuideControl(short item_number)
dist = SQUARE(x) + SQUARE(z);

if (dist < bestdist && dist < 0x400000 &&
(abs(item->pos.y_pos - candidate->pos.y_pos) < 256 || iDistance < 0x400000 || candidate->object_number == FUCKED_UP_DOG))
(abs(item->pos.y_pos - candidate->pos.y_pos) < 256 || iDistance < 0x400000 || candidate->object_number == DOG))
{
target = candidate;
bestdist = dist;
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/larafire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ void HitTarget(ITEM_INFO* item, GAME_VECTOR* hitpos, long damage, long grenade)
{
case 1:

if (item->object_number == SUPER_RAGHEAD && (item->current_anim_state == 8 || GetRandomControl() & 1) &&
if (item->object_number == BADDY_2 && (item->current_anim_state == 8 || GetRandomControl() & 1) &&
(lara.gun_type == WEAPON_PISTOLS || lara.gun_type == WEAPON_SHOTGUN || lara.gun_type == WEAPON_UZI))
{
SoundEffect(SFX_BAD_SWORD_RICO, &item->pos, SFX_DEFAULT);
Expand Down
6 changes: 3 additions & 3 deletions TOMB4/game/lot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ void InitialiseSlot(short item_number, long slot)
{
case ENEMY_JEEP:
case VON_CROY:
case RAGHEAD:
case SUPER_RAGHEAD:
case BADDY_1:
case BADDY_2:
creature->LOT.step = 1024;
creature->LOT.drop = -1024;
creature->LOT.can_jump = 1;
Expand All @@ -175,7 +175,7 @@ void InitialiseSlot(short item_number, long slot)
case DEMIGOD1:
case DEMIGOD2:
case DEMIGOD3:
case FUCKED_UP_DOG:
case DOG:
creature->LOT.step = 256;
creature->LOT.drop = -512;
creature->LOT.zone = BASIC_ZONE;
Expand Down
2 changes: 1 addition & 1 deletion TOMB4/game/moveblok.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ void ControlPlanetEffect(short item_number)
pos.z = 0;
GetJointAbsPosition(item, &pos, 0);

item2 = find_a_fucking_item(ANIMATING4);
item2 = find_an_item_with_object_type(ANIMATING4);
pos2.x = 0;
pos2.y = 0;
pos2.z = 0;
Expand Down
Loading

0 comments on commit 60703cc

Please sign in to comment.