Add support for top/bottom color on players and viewmodels.

This commit is contained in:
Marco Cawthorne 2021-05-20 16:02:49 +02:00
parent aee6759772
commit 594fea1df5
11 changed files with 11 additions and 10 deletions

View file

@ -74,6 +74,7 @@ HHDMultiplayerRules::PlayerDeath(base_player pl)
corpse.frame = ANIM_DIESIMPLE; corpse.frame = ANIM_DIESIMPLE;
corpse.angles = pl.angles; corpse.angles = pl.angles;
corpse.velocity = pl.velocity; corpse.velocity = pl.velocity;
corpse.colormap = pl.colormap;
} }
void void

View file

@ -23,7 +23,7 @@ enumflags
PLAYER_ORIGIN_Z, PLAYER_ORIGIN_Z,
PLAYER_ANGLES_X, PLAYER_ANGLES_X,
PLAYER_ANGLES_Y, PLAYER_ANGLES_Y,
PLAYER_ANGLES_Z, PLAYER_COLORMAP,
PLAYER_VELOCITY, PLAYER_VELOCITY,
PLAYER_VELOCITY_Z, PLAYER_VELOCITY_Z,
PLAYER_FLAGS, PLAYER_FLAGS,

View file

@ -201,7 +201,7 @@ w_broom_hudpic(int selected, vector pos, float a)
weapon_t w_broom = weapon_t w_broom =
{ {
.name = "broom", .name = "broom",
.id = ITEM_BROOM, .id = ITEM_BROOM,
.slot = 0, .slot = 0,
.slot_pos = 0, .slot_pos = 0,
.draw = w_broom_draw, .draw = w_broom_draw,

View file

@ -316,7 +316,7 @@ w_forks_hudpic(int selected, vector pos, float a)
weapon_t w_forks = weapon_t w_forks =
{ {
.name = "fork", .name = "fork",
.id = ITEM_FORKS, .id = ITEM_FORKS,
.slot = 0, .slot = 0,
.slot_pos = 2, .slot_pos = 2,
.draw = w_forks_draw, .draw = w_forks_draw,

View file

@ -225,7 +225,7 @@ w_fryingpan_hudpic(int selected, vector pos, float a)
weapon_t w_fryingpan = weapon_t w_fryingpan =
{ {
.name = "fryingpan", .name = "fryingpan",
.id = ITEM_FRYINGPAN, .id = ITEM_FRYINGPAN,
.slot = 0, .slot = 0,
.slot_pos = 1, .slot_pos = 1,
.draw = w_fryingpan_draw, .draw = w_fryingpan_draw,

View file

@ -252,7 +252,7 @@ w_hairspray_hudpic(int selected, vector pos, float a)
weapon_t w_hairspray = weapon_t w_hairspray =
{ {
.name = "flame", .name = "flame",
.id = ITEM_HAIRSPRAY, .id = ITEM_HAIRSPRAY,
.slot = 0, .slot = 0,
.slot_pos = 6, .slot_pos = 6,
.draw = w_hairspray_draw, .draw = w_hairspray_draw,

View file

@ -280,7 +280,7 @@ w_knife_hudpic(int selected, vector pos, float a)
weapon_t w_knife = weapon_t w_knife =
{ {
.name = "knife", .name = "knife",
.id = ITEM_KNIFE, .id = ITEM_KNIFE,
.slot = 0, .slot = 0,
.slot_pos = 3, .slot_pos = 3,
.draw = w_knife_draw, .draw = w_knife_draw,

View file

@ -264,7 +264,7 @@ w_lego_hudpic(int selected, vector pos, float a)
weapon_t w_lego = weapon_t w_lego =
{ {
.name = "lego", .name = "lego",
.id = ITEM_LEGO, .id = ITEM_LEGO,
.slot = 0, .slot = 0,
.slot_pos = 5, .slot_pos = 5,
.draw = w_lego_draw, .draw = w_lego_draw,

View file

@ -265,7 +265,7 @@ w_legolauncher_hudpic(int selected, vector pos, float a)
weapon_t w_legolauncher = weapon_t w_legolauncher =
{ {
.name = "legoblock", .name = "legoblock",
.id = ITEM_LEGOLAUNCHER, .id = ITEM_LEGOLAUNCHER,
.slot = 0, .slot = 0,
.slot_pos = 7, .slot_pos = 7,
.draw = w_legolauncher_draw, .draw = w_legolauncher_draw,

View file

@ -270,7 +270,7 @@ w_machette_hudpic(int selected, vector pos, float a)
weapon_t w_machette = weapon_t w_machette =
{ {
.name = "machette", .name = "machette",
.id = ITEM_MACHETTE, .id = ITEM_MACHETTE,
.slot = 1, .slot = 1,
.slot_pos = 1, .slot_pos = 1,
.draw = w_machette_draw, .draw = w_machette_draw,

View file

@ -324,7 +324,7 @@ w_sodalauncher_hudpic(int selected, vector pos, float a)
weapon_t w_sodalauncher = { weapon_t w_sodalauncher = {
.name = "sodacan", .name = "sodacan",
.id = ITEM_SODALAUNCHER, .id = ITEM_SODALAUNCHER,
.slot = 0, .slot = 0,
.slot_pos = 4, .slot_pos = 4,
.draw = w_sodalauncher_draw, .draw = w_sodalauncher_draw,