Need help on a small issue with my mod
-
This is the first mod i've ever made and it basically just spawns you with a loadout in zombies but for some reason the guns arent in your hand when you spawn in. If you scroll your mouse wheel you get the guns and im not sure why. Can anyone help? here is the code
#include maps\mp_utility;
#include common_scripts\utility;
#include maps\mp\gametypes_zm_hud_util;
#include maps\mp\gametypes_zm_hud_message;init()
{
level.givecustomloadout = ::givecustomloadout;
}
givecustomloadout(alreadyspawned)
{
self giveweapon( "knife_zm" );
if ( level.round_number >= 1)
{
self giveweapon( "tazer_knuckles_zm" );
self giveWeapon( "hamr_upgraded_zm" );
self giveWeapon( "raygun_mark2_upgraded_zm" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_fastreload" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_rof" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_quickrevive" );
self maps/mp/zombies/_zm_perks::give_perk( "specialty_longersprint" );
}
} -
jaxhldn post the code of your mod
-
Dss0 idk how i forgot to do that lmaooo i added it to the original post
-
jaxhldn you need to add
self switchToWeapon( "hamr_upgraded_zm" );
-
Dss0 thanks that worked