Raised This Month: $51 Target: $400
 12% 

Zombie Swarm 3.1


Post New Thread Reply   
 
Thread Tools Display Modes
djmd378
Senior Member
Join Date: Sep 2004
Old 08-14-2007 , 05:41   Re: Zombie Swarm 2.3a
Reply With Quote #661

No. Just don't set their speed at all until round start.
__________________
djmd378 is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 08-14-2007 , 06:40   Re: Zombie Swarm 2.3a
Reply With Quote #662

What about the CurWeapon event part?
Because I did what you said and it does work but I'll have to comment out the speedchange in CurWeapon
PHP Code:
public event_new_round(id
{
    new 
Float:buy_time get_cvar_float("mp_buytime") * 60
    set_task
(buy_time"buy_false"7294)
    
    
buying true
    
    
if (g_zombie[id]) set_user_maxspeed(id0.0)
}

public 
logevent_round_start(id
{
    if(!
get_pcvar_num(zomb_switch))
        return 
PLUGIN_HANDLED
    
    
if (get_pcvar_num(zomb_nvg))
        
server_cmd("amx_restrict on nvgs")
    else
        
server_cmd("amx_restrict off nvgs")
    
    
set_task (0.5 "team_check")
    
set_task (5.0 "StartMsg")
    
    if (
g_zombie[id]) set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))

    return 
PLUGIN_CONTINUE
}

public 
event_cur_weapon(id
{
    if(!
get_pcvar_num(zomb_switch))
        return 
PLUGIN_HANDLED
    
    
if(!is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
new weapon read_data(2)
    
    if (
g_zombie[id] && g_WeaponSlots[weapon] == SLOT_KNIFE
    {
        
//set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))
        
set_pev(idpev_viewmodelengfunc(EngFunc_AllocString"models/v_knife_zombie.mdl"))
    }
    return 
PLUGIN_CONTINUE

The zombies stop on freeze time but on round start their speed doesn't get set.
Oh btw, I did comment out the speedchange in ResetHUD
__________________
It's a mystery.

Last edited by Mini_Midget; 08-14-2007 at 06:44.
Mini_Midget is offline
djmd378
Senior Member
Join Date: Sep 2004
Old 08-14-2007 , 14:30   Re: Zombie Swarm 2.3a
Reply With Quote #663

PHP Code:
new bool:AllowSpeed false

public plugin_init() 
{
    
register_logevent("logevent_round_end"2"1=Round_End")
}

public 
round_start(id
{
    if(!
get_pcvar_num(zomb_switch))
        return 
PLUGIN_HANDLED
    
    set_task 
(0.5 "team_check")
    
set_task (5.0 "StartMsg")
    
    
AllowSpeed true

    
if (g_zombie[id])
        
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))

    return 
PLUGIN_CONTINUE
}

public 
logevent_round_end() AllowSpeed false

public event_cur_weapon(id
{
    if(!
get_pcvar_num(zomb_switch))
        return 
PLUGIN_HANDLED
    
    
new weaponID read_data(2
    
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
if(weaponID != CSW_KNIFE)
        return 
PLUGIN_HANDLED
    
    
if ( g_zombie[id] && AllowSpeed
    {
        
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))
        
set_pev(idpev_viewmodelengfunc(EngFunc_AllocString"models/v_knife_zombie.mdl"))
    }
    return 
PLUGIN_CONTINUE
}

public 
event_player_spawn(id
{    
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
new CsTeams:team cs_get_user_team(id)
    new 
CsArmorType:ArmorType CS_ARMOR_VESTHELM
    
    
if(team == CS_TEAM_T)
    {
        
g_zombie[id] = true
        set_task
(random_float(0.1,0.5), "Reset_Weapons"id//Strips zombies if they do have guns
        
set_user_health(id,get_pcvar_num(zomb_hp))
        
cs_set_user_armor(id,get_pcvar_num(zomb_ap),ArmorType)
        
set_user_footsteps(id1)
        
set_user_gravity(id,0.875)

        if (
AllowSpeed)
            
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))

        
cs_set_user_money(id,0)

        if (!
cs_get_user_nvg(id))
        {
            
cs_set_user_nvg(id,1)
            
message_begin(MSG_ONE_UNRELIABLEnvg, {0,0,0}, id)
            
write_byte(1)
            
message_end()
            } else {
            
message_begin(MSG_ONE_UNRELIABLEnvg, {0,0,0}, id)
            
write_byte(1)
            
message_end()
        }
    }
    else if(
team == CS_TEAM_CT)
    {
        
g_zombie[id] = false
        set_user_footsteps
(id0)
        
cs_reset_user_model(id)
        
cs_set_user_money(idcs_get_user_money(id) + get_pcvar_num(zomb_money))
    }
    
    
ShowHUD(id)
    
    return 
PLUGIN_CONTINUE

__________________
djmd378 is offline
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 08-14-2007 , 20:11   Re: Zombie Swarm 2.3a
Reply With Quote #664

i have a problem with this mod. the first User was joined the server can play every round. the other Users who joined after the first will be kicked after the roundend with the message in the console

Code:
Error: server failed to transmit file 'AY&SYӨ'
Last 32 messages parsed.
3530 0428 ScoreInfo
3530 0438 TeamInfo
3530 0444 ScoreInfo
3530 0454 svc_updateuserinfo
3530 0643 svc_updateuserinfo
3530 0830 svc_updateuserinfo
3530 1017 svc_updateuserinfo
3530 1201 svc_updateuserinfo
3530 1394 svc_updateuserinfo
3530 1582 svc_updateuserinfo
3530 1766 svc_updateuserinfo
3530 1950 svc_updateuserinfo
3530 2134 svc_updateuserinfo
3530 2319 AmmoX
3530 2322 CurWeapon
3530 2326 CurWeapon
3530 2330 ScoreAttrib
3530 2333 ScoreAttrib
3530 2336 ScoreAttrib
3530 2339 ScoreAttrib
3530 2342 ScoreAttrib
3530 2345 ScoreAttrib
3530 2348 ScoreAttrib
3530 2351 ScoreAttrib
3530 2354 ScoreAttrib
3530 2357 SendAudio
3530 2377 svc_temp_entity
3530 2386 RoundTime
3530 2389 CurWeapon
3530 2393 CurWeapon
3530 2397 svc_filetxferfailed
BAD:  2408:svc_bad
Host_Error: CL_ParseServerMessage: Il
Any Ideas?
__________________
Mulan is offline
Send a message via ICQ to Mulan
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 08-15-2007 , 07:47   Re: Zombie Swarm 2.3a
Reply With Quote #665

Thats exactly what I did djm but I had to play with it for 30 mins or so. (wasn't fully awake)

Whoa, first time someone posted an error about the svc_bad error bug.
Firstly, try and stop all 3rd party plugins you are using atm but zombie swarm and then give it another test run. This will just help me find out more about this svc_bad error but everyone is leaning to the side that it is steams fault. But wouldn't hurt if you try and look for it yourself.
Cheers bro
__________________
It's a mystery.
Mini_Midget is offline
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 08-15-2007 , 08:07   Re: Zombie Swarm 2.3a
Reply With Quote #666

Hi, i have disabled all plugins... the same problem

Code:
Error: server failed to transmit file 'AY&SYӨ'
Last 32 messages parsed.
3530 0428 ScoreInfo
3530 0438 TeamInfo
3530 0444 ScoreInfo
3530 0454 svc_updateuserinfo
3530 0643 svc_updateuserinfo
3530 0830 svc_updateuserinfo
3530 1017 svc_updateuserinfo
3530 1201 svc_updateuserinfo
3530 1394 svc_updateuserinfo
3530 1582 svc_updateuserinfo
3530 1766 svc_updateuserinfo
3530 1950 svc_updateuserinfo
3530 2134 svc_updateuserinfo
3530 2319 AmmoX
3530 2322 CurWeapon
3530 2326 CurWeapon
3530 2330 ScoreAttrib
3530 2333 ScoreAttrib
3530 2336 ScoreAttrib
3530 2339 ScoreAttrib
3530 2342 ScoreAttrib
3530 2345 ScoreAttrib
3530 2348 ScoreAttrib
3530 2351 ScoreAttrib
3530 2354 ScoreAttrib
3530 2357 SendAudio
3530 2377 svc_temp_entity
3530 2386 RoundTime
3530 2389 CurWeapon
3530 2393 CurWeapon
3530 2397 svc_filetxferfailed
BAD:  2408:svc_bad
Host_Error: CL_ParseServerMessage: Il
Code:
14:05:20 Currently loaded plugins:
                name                    version  author            file             status   
          [  1] Zombie Swarm            2.3a     Mini_Midget       zombie_swarm.am  running  
          [  2] Admin Base (SQL)        0.20     AMXX Dev Team     admin.amxx       running  
          [  3] Admin Commands          1.76b    AMXX Dev Team     admincmd.amxx    running  
          [  4] Multi-Lingual System    1.76b    AMXX Dev Team     multilingual.am  running  
          [  5] Menus Front-End         1.76b    AMXX Dev Team     menufront.amxx   running  
          [  6] Commands Menu           1.76b    AMXX Dev Team     cmdmenu.amxx     running  
          [  7] Players Menu            1.76b    AMXX Dev Team     plmenu.amxx      running  
          [  8] Maps Menu               1.76b    AMXX Dev Team     mapsmenu.amxx    running  
          [  9] Admin Chat              1.76b    AMXX Dev Team     adminchat.amxx   running  
          [ 10] Anti Flood              1.76b    AMXX Dev Team     antiflood.amxx   running  
          [ 11] Info. Messages          1.76b    AMXX Dev Team     imessage.amxx    running  
          [ 12] Admin Votes             1.76b    AMXX Dev Team     adminvote.amxx   running  
          [ 13] NextMap                 1.76b    AMXX Dev Team     nextmap.amxx     running  
          [ 14] Nextmap Chooser         1.76b    AMXX Dev Team     mapchooser.amxx  running  
          [ 15] TimeLeft                1.76b    AMXX Dev Team     timeleft.amxx    running  
          [ 16] Stats Configuration     1.76b    AMXX Dev Team     statscfg.amxx    running  
          [ 17] Restrict Weapons        1.76b    AMXX Dev Team     restmenu.amxx    running  
          [ 18] StatsX                  1.76b    AMXX Dev Team     statsx.amxx      running  
          [ 19] CS Misc. Stats          1.76b    AMXX Dev Team     miscstats.amxx   running  
          [ 20] CS Stats Logging        1.76b    AMXX Dev Team     stats_logging.a  running  
          [ 21] AMX Mod Compat Engine   1.76.rc  AMXX Dev Team     amxmod_compat.a  running  
          [ 22] Bad Camper              1.3b     Brad Jones        bad_camper.amxx  running  
          [ 23] custom sky              1.1      cheap_suit        customsky.amxx   running  
          [ 24] Emergency Ammo          1.0      Mini_Midget       emergency_ammo.  running  
          [ 25] Pump Knockback (when s  1.0      v3x & Chronic     pump_knockback.  running  
          [ 26] Team Money              1.0      Cheap_Suit        teammoney.amxx   running  
         26 plugins, 26 running
my metamod-plugins

Code:
14:06:41 meta list
14:06:41 Currently loaded plugins:
               description      stat pend  file              vers      src   load  unlod
          [ 1] AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.76b    ini   ANY   ANY  
          [ 2] HLGuard          RUN   -    hlguard_mm_i686.  v1.8      ini   Chlvl Chlvl
          [ 3] POD-Bot mm       RUN   -    podbot_mm_i386.s  v3.0B18d  ini   Chlvl ANY  
          [ 4] SBSRV            RUN   -    sbsrv_mm_i386.so  v3.4      ini   Start Never
          [ 5] MySQL            RUN   -    mysql_amxx_i386.  v1.76b    pl1   ANY   ANY  
          [ 6] Fun              RUN   -    fun_amxx_i386.so  v1.76     pl1   ANY   ANY  
          [ 7] Engine           RUN   -    engine_amxx_i386  v1.76     pl1   ANY   ANY  
          [ 8] FakeMeta         RUN   -    fakemeta_amxx_i3  v1.76b    pl1   ANY   ANY  
          [ 9] CStrike          RUN   -    cstrike_amxx_i38  v1.76     pl1   ANY   ANY  
          [10] CSX              RUN   -    csx_amxx_i386.so  v1.76a    pl1   ANY   ANY  
         10 plugins, 10 running
__________________
Mulan is offline
Send a message via ICQ to Mulan
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 08-15-2007 , 09:40   Re: Zombie Swarm 2.3a
Reply With Quote #667

Take out
bad camper
custom sky
emergency ammo
pump knockback
team money

(Not sure if this will affect anything but)
Put zombie swarm at the bottom of the list.
Restart server and host again and post back a log with errors.
__________________
It's a mystery.
Mini_Midget is offline
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 08-15-2007 , 10:22   Re: Zombie Swarm 2.3a
Reply With Quote #668

the same problem...
must been an error in the plugin

Code:
Error: server failed to transmit file 'AY&SYӨ'
Last 32 messages parsed.
3530 0428 ScoreInfo
3530 0438 TeamInfo
3530 0444 ScoreInfo
3530 0454 svc_updateuserinfo
3530 0643 svc_updateuserinfo
3530 0830 svc_updateuserinfo
3530 1017 svc_updateuserinfo
3530 1201 svc_updateuserinfo
3530 1394 svc_updateuserinfo
3530 1582 svc_updateuserinfo
3530 1766 svc_updateuserinfo
3530 1950 svc_updateuserinfo
3530 2134 svc_updateuserinfo
3530 2319 AmmoX
3530 2322 CurWeapon
3530 2326 CurWeapon
3530 2330 ScoreAttrib
3530 2333 ScoreAttrib
3530 2336 ScoreAttrib
3530 2339 ScoreAttrib
3530 2342 ScoreAttrib
3530 2345 ScoreAttrib
3530 2348 ScoreAttrib
3530 2351 ScoreAttrib
3530 2354 ScoreAttrib
3530 2357 SendAudio
3530 2377 svc_temp_entity
3530 2386 RoundTime
3530 2389 CurWeapon
3530 2393 CurWeapon
3530 2397 svc_filetxferfailed
BAD:  2408:svc_bad
Host_Error: CL_ParseServerMessage: Il
The same problem with this plugin http://forums.alliedmods.net/showthr...ghlight=zombie
__________________
Mulan is offline
Send a message via ICQ to Mulan
djmd378
Senior Member
Join Date: Sep 2004
Old 08-15-2007 , 12:44   Re: Zombie Swarm 2.3a
Reply With Quote #669

This one works.

PHP Code:
new bool:AllowSpeed false

public plugin_init() 
{
    
register_event("HLTV","event_new_round","a","1=0","2=0")
}

public 
event_new_round() 
{
    
AllowSpeed false

    
new ft get_cvar_num("mp_freezetime")
    
set_task(float(ft),"allow_zombie_speed")
}

public 
allow_zombie_speed() 
{
    
AllowSpeed true

    
new iPlayers[32], iiPlayersNum
    get_players
(iPlayersiPlayersNum)
    for (
iPlayersNumi++)
        if (
g_zombie[iPlayers[i]])
            
set_user_maxspeed(iPlayers[i], (get_pcvar_float(zomb_speed)))
}

public 
event_cur_weapon(id
{
    if(!
get_pcvar_num(zomb_switch))
        return 
PLUGIN_HANDLED
    
    
new weaponID read_data(2
    
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
if(weaponID != CSW_KNIFE)
        return 
PLUGIN_HANDLED
    
    
if ( g_zombie[id] && AllowSpeed 
        
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))

    if ( 
g_zombie[id] )
        
set_pev(idpev_viewmodelengfunc(EngFunc_AllocString"models/v_knife_zombie.mdl"))

    return 
PLUGIN_CONTINUE
}

public 
event_player_spawn(id
{    
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
new CsTeams:team cs_get_user_team(id)
    new 
CsArmorType:ArmorType CS_ARMOR_VESTHELM
    
    
if(team == CS_TEAM_T)
    {
        
g_zombie[id] = true
        set_task
(random_float(0.1,0.5), "Reset_Weapons"id//Strips zombies if they do have guns
        
set_user_health(id,get_pcvar_num(zomb_hp))
        
cs_set_user_armor(id,get_pcvar_num(zomb_ap),ArmorType)
        
set_user_footsteps(id1)
        
set_user_gravity(id,0.875)

        if (
AllowSpeed)
            
set_user_maxspeed(id,(get_pcvar_float(zomb_speed)))

        
cs_set_user_money(id,0)

        if (!
cs_get_user_nvg(id))
        {
            
cs_set_user_nvg(id,1)
            
message_begin(MSG_ONE_UNRELIABLEnvg, {0,0,0}, id)
            
write_byte(1)
            
message_end()
            } else {
            
message_begin(MSG_ONE_UNRELIABLEnvg, {0,0,0}, id)
            
write_byte(1)
            
message_end()
        }
    }
    else if(
team == CS_TEAM_CT)
    {
        
g_zombie[id] = false
        set_user_footsteps
(id0)
        
cs_reset_user_model(id)
        
cs_set_user_money(idcs_get_user_money(id) + get_pcvar_num(zomb_money))
    }
    
    
ShowHUD(id)
    
    return 
PLUGIN_CONTINUE

__________________
djmd378 is offline
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 08-15-2007 , 13:01   Re: Zombie Swarm 2.3a
Reply With Quote #670

Mulan, I would update your AMXX just incase.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode