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

Added weapon weights values (thanks scripts/weapons_?.txt from HL:S)
This commit is contained in:
Marco Cawthorne 2021-05-20 16:04:11 +02:00
parent 294cc00aad
commit 243b3f29bc
16 changed files with 16 additions and 1 deletions

View file

@ -79,6 +79,7 @@ HLMultiplayerRules::PlayerDeath(base_player pl)
corpse.frame = ANIM_DIESIMPLE;
corpse.angles = pl.angles;
corpse.velocity = pl.velocity;
corpse.colormap = pl.colormap;
}
/* now let's make the real client invisible */

View file

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

View file

@ -375,6 +375,7 @@ weapon_t w_crossbow =
.id = ITEM_CROSSBOW,
.slot = 2,
.slot_pos = 2,
.weight = 10,
.draw = w_crossbow_draw,
.holster = w_crossbow_holster,
.primary = w_crossbow_primary,

View file

@ -210,6 +210,7 @@ weapon_t w_crowbar =
.id = ITEM_CROWBAR,
.slot = 0,
.slot_pos = 0,
.weight = 0,
.draw = w_crowbar_draw,
.holster = w_crowbar_holster,
.primary = w_crowbar_primary,

View file

@ -306,6 +306,7 @@ weapon_t w_egon =
.id = ITEM_EGON,
.slot = 3,
.slot_pos = 2,
.weight = 15,
.draw = w_egon_draw,
.holster = w_egon_holster,
.primary = w_egon_primary,

View file

@ -493,6 +493,7 @@ weapon_t w_gauss =
.id = ITEM_GAUSS,
.slot = 3,
.slot_pos = 1,
.weight = 20,
.draw = w_gauss_draw,
.holster = w_gauss_holster,
.primary = w_gauss_primary,

View file

@ -386,6 +386,7 @@ weapon_t w_glock =
.id = ITEM_GLOCK,
.slot = 1,
.slot_pos = 0,
.weight = 10,
.draw = w_glock_draw,
.holster = w_glock_holster,
.primary = w_glock_primary,

View file

@ -249,6 +249,7 @@ weapon_t w_handgrenade =
.id = ITEM_HANDGRENADE,
.slot = 4,
.slot_pos = 0,
.weight = 5,
.draw = w_handgrenade_draw,
.holster = w_handgrenade_holster,
.primary = w_handgrenade_primary,

View file

@ -307,6 +307,7 @@ weapon_t w_hornetgun =
.id = ITEM_HORNETGUN,
.slot = 3,
.slot_pos = 3,
.weight = 10,
.draw = w_hornetgun_draw,
.holster = w_hornetgun_holster,
.primary = w_hornetgun_primary,

View file

@ -382,6 +382,7 @@ weapon_t w_mp5 =
.id = ITEM_MP5,
.slot = 2,
.slot_pos = 0,
.weight = 15,
.draw = w_mp5_draw,
.holster = w_mp5_holster,
.primary = w_mp5_primary,

View file

@ -338,6 +338,7 @@ weapon_t w_python =
.id = ITEM_PYTHON,
.slot = 1,
.slot_pos = 1,
.weight = 15,
.draw = w_python_draw,
.holster = w_python_holster,
.primary = w_python_primary,

View file

@ -338,6 +338,7 @@ weapon_t w_rpg =
.id = ITEM_RPG,
.slot = 3,
.slot_pos = 0,
.weight = 20,
.draw = w_rpg_draw,
.holster = w_rpg_holster,
.primary = w_rpg_primary,

View file

@ -316,6 +316,7 @@ weapon_t w_satchel =
.id = ITEM_SATCHEL,
.slot = 4,
.slot_pos = 1,
.weight = -20,
.draw = w_satchel_draw,
.holster = w_satchel_holster,
.primary = w_satchel_primary,

View file

@ -401,6 +401,7 @@ weapon_t w_shotgun =
.id = ITEM_SHOTGUN,
.slot = 2,
.slot_pos = 1,
.weight = 15,
.draw = w_shotgun_draw,
.holster = w_shotgun_holster,
.primary = w_shotgun_primary,

View file

@ -323,6 +323,7 @@ weapon_t w_snark =
.id = ITEM_SNARK,
.slot = 4,
.slot_pos = 3,
.weight = 5,
.draw = w_snark_draw,
.holster = w_snark_holster,
.primary = w_snark_primary,

View file

@ -378,6 +378,7 @@ weapon_t w_tripmine =
.id = ITEM_TRIPMINE,
.slot = 4,
.slot_pos = 2,
.weight = -10,
.draw = w_tripmine_draw,
.holster = w_tripmine_holster,
.primary = w_tripmine_primary,