Dynamic Mapvote
dynamic_mapvote1.png

Dynamic Mapvote

dynamic_mapvote3.png
Author Cubemath
Date of release January 13, 2018
.bsp filename dynamic_mapvote

Description

Stand on the Floor infront of a Screen to vote a Map.

Additional info

Instructions
Modify the File to add/delete maps:

/scripts/maps/store/mapvote_maps.txt

The first line should contain the timelimit in seconds.
Example:

Time: 20

The other lines should contains the map-data.
Example:

Half-Life Campaign|hl_c00

The character '|' splits the text.
The text infront of the Pipe-Character it the title that appears on the Vote-Screen.
The text after the Pipe-Character is the name of the map.

You can also add a breakline in the title by adding "\n".
Example:

Half-Life\nCampaign|hl_c00

It is possible to add a second map to the map-data.
Example:

Half-Life Campaign|hl_c00|hl_c02_a1

If people decided to vote for a campaign,
a Vote-Window will appear that allows the people to skip the intro (goto 2nd map).

If you want to add a Pipe-Character to the title, then use "\|".

Vote-Screen doesn't support Unicode-Characters.

If you want to change the music for the lobby, go to the directory: /sound/dynamic_mapvote/, add your own music file then edit the file dynamic_mapvote.gsr.
You will see the lines:

"dynamic_mapvote/dynamic_mapvote.ogg" "dynamic_mapvote/dynamic_mapvote.ogg"

Simply change the path of the second line of code to your desired music.
Example:

"dynamic_mapvote/dynamic_mapvote.ogg" "dynamic_mapvote/mymusic.mp3"

You are allowed to use mp3, wav and ogg formats.
After finishing you must add this custom sound to the dynamic_mapvote.res file.

Design
A picture is worth a thousand words.
Add a path to a sprite to the line like this:

sprites/dynamic_mapvote/half-life.spr|Half-Life Campaign|hl_c00

Then this sprite will appear on the votescreen.

Be sure that everybody can see the sprite (Add sprite-path into dynamic_mapvote.res as it is a custom sprite).

Be sure that the resolution of the sprite is 352x160 or else it wont fit into the Vote-Screen.

Here's for Example (you can download ex.)

Note: use the HL/CS Sprite editor tool (.spr file) you can edit it and to make your own vote-screen.

The map will be built automatically using the text file.
If the Text-File is missing or contains invalid data, then the error will be shown as title on the Vote-Screen and Half-Life Campaign will be started after the vote.

If an invalid map gets voted, an Error-Message appears on your Screen and the Vote-Timer will reset,so the people can vote for a different map.

Known Issues

  • Possible Softlock: If people vote for an invalid map, then people will be stuck on this map!
  • Bug: Disappearing Map-Parts, because there are too many entities on the map. (Keep in Mind, that each Character on the Vote-Screen is an entity)
  • Minor Bug: Repeating player sprays and blood decals

Changelog

Tags

2018 music size:small votemap

edit tags

Feedback

Rate this map

5 / 5 (2 votes)

Reviews

write a full review »

Comments & discussion

Add a New Comment

There are over 1308 maps for Sven Co-op! Here are a few:

0-re1_top.jpg

3.6 / 5

2003 rcbot scary size:large total-conversion walkthrough zombies

0-sc_doc0006.jpg

4 / 5

2007 boms co-oprequired official official-screlease rcbot snow survival svencoop4 svencoop5 walkthrough

mustard-2019-04-06-0007.jpg

N/A / 5

losable mustard size:large unreleased work-in-progress

00000-assaultmesa2-top.jpg

3.8 / 5

2002 black-mesa boss creepsworld-top50 difficulty:hard official official-screlease rcbot secrets size:large walkthrough

0-cityofthe_dead0050_thumb.jpg

3 / 5

2007 difficulty:hard horde losable size:medium zombies

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License