Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the infection gamemode bugged?
#1
If you've ever played the infection gamemode you'll see that it's bugged. Sometimes it randomly stops when there are still 3 players left. When I quickly checked the code I thought the function 'getNumSurvivors()' must've been bugged. But it seems fine. Can anyone else what's wrong?

[Image: MaEIQ.png]
Reply

#2
So.... you're fixing IW's problems?
Reply

#3
Well, yes. This gamemode is a lot of fun and I just want to have it fixed -.- HERP
[Image: MaEIQ.png]
Reply

#4
(11-16-2011, 17:24)Pozzuh Wrote: Well, yes. This gamemode is a lot of fun and I just want to have it fixed -.- HERP

Um.. I'm kinda a noob at editing and such but where is that file located for Infected?
Reply

#5
i know whats wrong. the point is , when a zombie leaves the game , a man is automatically removed by the game from humans, but the man is still playing.
thing that happened to you is 3 zombies left the game then when the zombies kill all but 3 , the game ends
this is bad.
Reply

#6
Anyone know how to fix this error?
Reply

#7
I have found the problem.

Problem:
Code:
getNumSurvivors()
{
    numSurvivors = 0;
    foreach ( player in level.players )
    {
        if ( player.team == "allies" )
            numSurvivors++;
    }
    return numSurvivors;    
}

It counts every players that belongs to the "allies" (team). Each player will add 1 to "numSurvivors". The problem is, that this function doesn't add -1 if a player loses connection or leaves.

How to solve:
Make a check how many players are really left each 2 seconds or something. Than put this amount in "numSurvivors".

I hope this helped you.
Reply

#8
(04-07-2012, 21:45)surtek Wrote: I have found the problem.

Problem:
Code:
getNumSurvivors()
{
    numSurvivors = 0;
    foreach ( player in level.players )
    {
        if ( player.team == "allies" )
            numSurvivors++;
    }
    return numSurvivors;    
}

It counts every players that belongs to the "allies" (team). Each player will add 1 to "numSurvivors". The problem is, that this function doesn't add -1 if a player loses connection or leaves.

How to solve:
Make a check how many players are really left each 2 seconds or something. Than put this amount in "numSurvivors".

I hope this helped you.
I do that already but it's really annoying can anyone fix it? And upload a fixed version of Infected? If you already found the problem can't it be fixable?
Reply

#9
friends where you found these files, already tried in every game file not found, I'm a bit noob
Reply

#10
(04-08-2012, 03:31)alegrete Wrote: friends where you found these files, already tried in every game file not found, I'm a bit noob

I don't know... Only thing I know how to do is edit the .dspl, .cfg, .dsr that's easy but no clue on how they get the Csharp codes and such :/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] no ammo for infected gamemode ExoGamer* 8 5,551 08-15-2013, 18:59
Last Post: Dr3am95
  [Release] ''WAR'' GameMode by Met PL Eekhoorn 52 104,771 03-28-2013, 00:26
Last Post: wattz3
  [News] New Gamemode - Hacker?! ZuNe 2 2,730 02-01-2013, 19:30
Last Post: ZuNe
  [News] am makeing a gamemode pap12322221112 2 2,455 09-30-2012, 17:33
Last Post: OrangePL
  [REQUEST] Random Gamemode NooB_StalkeR 5 3,548 08-19-2012, 22:59
Last Post: NooB_StalkeR
  I'm looking for a plugin that is able to change the current gamemode and map. moosa67 3 2,840 08-14-2012, 19:37
Last Post: JariZ
  Wager maps in custom gamemode projacol 2 2,560 06-23-2012, 14:49
Last Post: projacol
  Help Infected gamemode settings. Andrees 3 5,813 06-03-2012, 16:56
Last Post: Andrees
  [Request] Bugged final killcam fix xcondex 1 2,539 02-19-2012, 12:16
Last Post: Nekochan
Lightbulb Infection edition nofamily 7 5,469 11-29-2011, 20:47
Last Post: _Smile_Man_

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.