Skip to content

Commit

Permalink
GAME: Replace lollies with holo lollies in 1LC
Browse files Browse the repository at this point in the history
  • Loading branch information
kai-li-wop committed Nov 27, 2024
1 parent a30b348 commit 5879cc8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion code/game/g_items.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,19 @@ void FinishSpawningItem(gentity_t *ent) {

ent->s.eType = ET_ITEM;
ent->s.modelindex = ent->item - bg_itemlist; // store item number in modelindex
ent->s.modelindex2 = 0; // zero indicates this isn't a dropped item

// we use modified lolly assets in 1LC
if (g_gametype.integer == GT_1FCTF) {
if (ent->item->giType == IT_TEAM) {
if (ent->item->giTag == PW_REDFLAG) {
ent->s.modelindex = G_ModelIndex("models/ctl/lollipop_red_holo");
} else if (ent->item->giTag == PW_BLUEFLAG) {
ent->s.modelindex = G_ModelIndex("models/ctl/lollipop_blue_holo");
}
}
}

ent->s.modelindex2 = 0; // zero indicates this isn't a dropped item
ent->r.contents = CONTENTS_TRIGGER;
ent->touch = Touch_Item;
// using an item causes it to respawn
Expand Down

0 comments on commit 5879cc8

Please sign in to comment.