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" );
}
} -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login