UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

No weapons after being downed then re-spawn next round

broken avatar :(
Created 7 years ago
by whippytrout
0 Members and 1 Guest are viewing this topic.
1,460 views
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 8 months ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
×
whippytrout's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
So basically when a player dies then re-spawns next round he has no weapons. He is holding nothing. He has to buy a wall weapon in order to get a gun. I tried using the stock loadout.gsc and stock laststand.gsc but it still happens. I'm using the default "zombie_colt" as my starting pistol, nothing special.

Please Help me out this has to be a simple fix.

Thanks,

Whippy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2014
Last active: 3 years ago
Posts
103
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
Signature
Dead Palace
×
Riptide1106's Groups
Riptide1106's Contact & Social Links
for WAW anyway:
after maps\_zombiemode::main();
Code Snippet
Plaintext
array_thread(get_players(), ::give_gun_on_spawn_think);

at bottom with your other functions:
Code Snippet
Plaintext
give_gun_on_spawn_think()
{
    self endon("disconnect");
    flag_wait("all_players_spawned");
    //iPrintLn("Running loop on player " + self GetEntityNumber());
    while(true)
    {
        self waittill("spawned_player");
        wait_network_frame();
        wait(1);
        //iPrintLn("Giving a weapon to respawned player " + self GetEntityNumber());
        self GiveWeapon("zombie_colt");
        self SwitchToWeapon("zombie_colt");
    }
}
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 8 months ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
whippytrout's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
I love you Riptide1106! You did it! It fixed the problem.  :nyan: :nyan:

I really think it has to do with the respawning of players. I noticed players respawn on the still living players instead of the respawn points i have in each zone. I don't know where that script would be but I bet its the cause. Just for other peoples interest if they want to fix it another way.  ;)

 
Loading ...