Skip to content

Commit

Permalink
Give some champions random skins
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Feb 25, 2025
1 parent 66f5a74 commit 9443f5e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/quake/common/champions/champion/bigjohn.qc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ METHOD(BigJohn, m_takedamage, float(Champions this, entity targ, entity inflicto
METHOD(BigJohn, m_activate, void(Champions this, entity actor))
{
player_sound(actor, CH_VOICE, ((random() < 0.5) ? "bigjabl1.wav" : "bigjabl2.wav"), ATTN_NORM);

actor.skin = bound(0, (etof(actor) % 5) - 1, 4);
}

METHOD(BigJohn, m_playerthink, void(Champions this, entity actor))
Expand Down
2 changes: 2 additions & 0 deletions mod/quake/common/champions/champion/duke.qc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ METHOD(Duke, m_activate, void(Champions this, entity actor))
else
s = "wansom.wav";
duke_playersound(actor, CH_VOICE, s, ATTN_NORM);

actor.skin = bound(0, (etof(actor) % 8) - 1, 7);
}

METHOD(Duke, m_playerthink, void(Champions this, entity actor))
Expand Down
2 changes: 2 additions & 0 deletions mod/quake/common/champions/champion/dusk.qc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ void Dusk_MakeWisp(entity targ)
METHOD(Dusk, m_activate, void(Dusk this, entity actor))
{
player_sound(actor, CH_VOICE, "sicklestart.wav", ATTN_NORM);

actor.skin = bound(0, (etof(actor) % 6) - 1, 5);
}

METHOD(Dusk, m_playerthink, void(Dusk this, entity actor))
Expand Down
2 changes: 2 additions & 0 deletions mod/quake/common/champions/champion/keen.qc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ METHOD(Keen, m_activate, void(Champions this, entity actor))
{
player_sound(actor, CH_VOICE, "start.wav", ATTN_NORM);
STAT(WEAPONS, actor) |= WEP_POGO.m_wepset;

actor.skin = bound(0, (etof(actor) % 10) - 1, 9);
}
METHOD(Keen, m_clear, void(Champions this, entity actor))
{
Expand Down

0 comments on commit 9443f5e

Please sign in to comment.