1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

triggering the ending a round

  • tonystockert
  • August 25, 2007 at 6:39 AM
  • tonystockert
    • August 25, 2007 at 6:39 AM
    • #1

    first off, this is my first post here, but i'm not a complete noob. been mapping source for 6 months or so now, but i mapped for Q3 for a few years before that and found the transition really easy.

    i'm making a map for zombie master (http://www.zombiemaster.org) and i need to know if there is an entity, or a combination of them to trigger a round restart when the number of players has reached one.

    if you dont know what ZM is, think of it in terms of counterstrike. say there's only one terrorist and one CT left in the map. this would trigger a round end.

    the way it is in ZM, is that there is a human team and then a ZM, one player who controls all zombie NPCs. the problem i have is that to complete the mission, you need two people to do a two person retinal scan, so i'd like the round to automatically restart if the player number gets down to one.

    i do know a very hard way to do this though... with the ZM FGD there is an entity that can trigger an event if a certain percentage of the players are within it's area. so what i COULD do is make a million of the same 64x64 trigger brushes(small enough to where only one player could fit inside it) that each tell the round to end if 100% of the players in the game are in one of them. meaning if the last player (being 100% of the alive players) would trigger one of these to cause the humans to lose that round.

    just wondering if there's a simple way. im sure there is, i just cant seem to find anything that sounds like it in the SDK docs.

  • Warby
    • August 25, 2007 at 2:48 PM
    • #2

    you should ask that in the forum of the mod.

    i and probably many here that have opened and closed this thread don't know this mod and its entity's

  • ifO
    • August 25, 2007 at 3:29 PM
    • #3

    I don't think he's asking for ZM specific entities, he means general Source ones to solve his problem.

    I've not come accross an easy way to count the number of alive players.

    In HL1 you could count spawns, deaths and quits using a counter entity (can't remember what it's called) and use the keywords game_player_spawn, game_player_death etc. to trigger the counters.

    So if you could count spawns and count quits, deaths etc, then do some maths.

    #alive = #spawns - #deaths - #quits

    Dunno if that helps at all, not sure if Source is capable of any of this, (the counting or the maths).

  • Skjalg
    • August 25, 2007 at 3:32 PM
    • #4

    This is something I would probably ask the coder of the mod to make easy for me

  • tonystockert
    • August 25, 2007 at 9:16 PM
    • #5

    yeah, i was more asking if source comes with an entity that would do this, because they only thing ZM does is add a couple mod-specific ones that i've already ruled out as not helpful.

    if0:

    would # of quits also count as when someone joins the map, but quits while spectating before even playing, though?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. How to Use a Free Kundali Maker for Accurate Future Predictions

    astr09
    July 23, 2026 at 6:35 AM
  2. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  3. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  4. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  5. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  6. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  7. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  8. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  9. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  10. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™