1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00
Files
BO2-Reimagined/scripts/zm/replaced/_zm_game_module_meat_utility.gsc
Jbleezy 2317e5f62f Add Richtofen's Head weapon
Meat weapon: add weapon name on HUD
Meat weapon: change moveSpeedScale from weapon file
Meat weapon: set clip ammo to 0 instead of disabling weapons when grabbed while fire button pressed
Change every instance of "item_meat_zm" to level.item_meat_name
2023-12-19 22:27:16 -08:00

30 lines
1.1 KiB
Plaintext

#include maps\mp\zombies\_zm_game_module_meat_utility;
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\zombies\_zm_utility;
#include maps\mp\zombies\_zm_game_module_utility;
#include maps\mp\zombies\_zm_laststand;
#include maps\mp\zombies\_zm_audio_announcer;
#include maps\mp\gametypes_zm\zmeat;
#include maps\mp\zombies\_zm_powerups;
init_item_meat(gametype)
{
if (level.script == "zm_prison")
{
set_gamemode_var_once("item_meat_name", "item_head_zm");
set_gamemode_var_once("item_meat_model", "t6_wpn_zmb_severedhead_world");
}
else
{
set_gamemode_var_once("item_meat_name", "item_meat_zm");
set_gamemode_var_once("item_meat_model", "t6_wpn_zmb_meat_world");
}
precacheitem(get_gamemode_var("item_meat_name"));
set_gamemode_var_once("start_item_meat_name", get_gamemode_var("item_meat_name"));
level.meat_weaponidx = getweaponindexfromname(get_gamemode_var("item_meat_name"));
level.meat_pickupsound = getweaponpickupsound(level.meat_weaponidx);
level.meat_pickupsoundplayer = getweaponpickupsoundplayer(level.meat_weaponidx);
level.item_meat_name = get_gamemode_var("item_meat_name");
}