The Game Modding Community - Since 2001

King of the Hill/Control Point

A Map Prefab for Counter-Strike: Source

King of the Hill/Control Point base prefab

King of the Hill/Control Point gamemode base I think this has been done before but I haven't seen a prefab for it. The basic King of the Hill idea is easy to implement so I guess this is more about the visual aspect of it. Intended to be an addition to a map as it strips your current weapons and gives you a knife and a P228. Will work fine as it is, though. How (and what) to use:
Important! Read this! - In the middle you have two triggers, the filters for the triggers and the hill. The triggers and filters are essential, you can make your own hill though. If you already have team filters in the map, you can use those just fine, but remember to update the names in the triggers. - The trigger covering the spawns gives you your weapons and sets your health to 500. To change the amount of health, go into the outputs and change health 500 in the line OnTrigger, !activator, AddOutput, health 500 to the amount of health you want. I increased the health as it is too easy to kill people with default health, so people would drop like flies off the hill/control point. To change the weapons given, change the values in the game\_player\_equip. You will need the trigger, player\_weaponstrip, game\_player\_equip and filter\_activator\_name from here. Have the trigger covering the spawn, or the whole map. It will only trigger once as it filters them by name and their names get changed when they enter the filter. It essentially does what the game\_player\_equip would do without the "Use Only" flag. - You will need the logic_auto to reset player names and the timer brushes on new rounds. If you have a logic\_auto in your map already, copy and paste the outputs in this logic\_auto into yours and delete this one. - There are trigger\_hurts filtered for each team on each side of the hill. Cover your map with these if you only want one hill, or if you want the round to end by killing the other team. You can always delete these trigger_hurts and have it end another way or even enable another control point/hill. The entities that control the ending are digit\_relay and t\_digit\_relay OR timer\_path2 and t\_timer\_path2 if you use the bar timer. If you want to enable another hill or whatever you want, you will need to use these entities. Simply add the output to what you want to do from these. - Lastly, choose a visual timer. For the bar you can just copy and paste it. It should be fine whatever you do with it, but remember that func\_tracktrains should be built facing the east (to the right in your top view). For the number timers and the clock, you need the logic\_timer, both math\_counters and both logic\_relays. For the lower, digital-looking timer you need both logic\_compare entities that are in front of it. For the higher, texture-based timer you need both env\_texturetoggle entities that are also in front of it. You will also need to install the texture provided to see the texture-based timer. If you used the texture-based number counter you can delete the outputs OutValue, digit(2)\_case, InValue on the math\_counters. If you used the digital numbers you can delete the outputs OutValue, digit(1/2)\_tt, SetTextureIndex on the counters. You only need the materials folder if you use the texture-based number counter. Changing the Time: - For the bar timer (at the top), you need to set the Max Speed of both func\_tracktrains to the distance in units (eg 128) divided by the number of seconds (eg 60) (128/60 = 2.13333). So if you want the time to be 35 seconds and you want the bar to move 512 units you would set the Max Speed to 14.629 (rounded up) (512/35=14.6285...) - For the clock timer, you need to set the Max Rotation Speed to 360 divided by the number of seconds. For example, if you wanted the timer to go for 99 seconds you would set it to 3.636 (360/99=3.636363...) - For the number timers, you simply set the initial value of the math_counters. For example, to set the time to 15 seconds change digit1\_counter to 5 and digit2\_counter to 1. Do the same with the "t\_" ones (the terrorist team's counters).
Preview Video: Download Mirror

Notes:
For some reason the texture-based timer gets set to 05 after the time's up. I don't know what's causing this at the moment. I'm aware that the number timers seem to lag behind when going in and out of the trigger, but I believe this is because the logic\_timer needs to get from 0 to 1 to add to the counters again as it gets reset when disabled, instead of carrying on where it left off (at least I think that's the problem). Anyway, this isn't a problem if you aren't using them with the clock or bar at the same time.) If I get a few requests to add a third number to the number counters I will do so and update the prefab. If used please credit me in some way, although it is not necessary. Ignore the middle counter in the video. I was trying to use env\_globals to keep track of team wins but they don't seem to work after the update (or at least the counter functions available in other orangebox games hasn't been added). An explanation of how the digital number timer works can be found here. Although, this does not cover the logic\_relays used a clamp and to detect when it has reached 00.
Promotional Content

Files

Posts

  • 8y
    Hello, can you make a counting time of 20 minutes (20:00> 19:59 > 19:58) when the time is 00:00 it will trigger the end of map (end game) thank you for help and your work fredzertya@hotmail.com

    9.7

    Bananite

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
Fibbs
Everything

Submitter

Fibbs avatar
Fibbs username pic Joined 10y ago
Offline
29,089 points Ranked 147th
24 medals 1 rare
  • 6 years a member Medal icon
  • Prefaber of the Month, June 2012 Medal icon
  • MiPper of the Month, June 2012 Medal icon
  • Prefaber of the Month, March 2013 Medal icon
  • Texturer of the Month, July 2014 Medal icon
  • Became a Studio Leader Medal icon

Fibbs avatar
Fibbs

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+

Stats

  • 461 Downloads
  • 3,603 Views
  • 1 Posts
  • 8y Submitted
  • 3y Modified

Scores

87 bScore
9.7 Rating

1 voter

Sign up to access this!

SEX! Ok, we got your attention. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Resistance is futile... Sign up now!

Already a Bananite? Login

bcp.crwdcntrl.net tracking pixel