View Single Post
Old 05-09-2014, 07:06 PM   #106
ddm999
worst ff player eu
 
Join Date: Jun 2012
Location: South Yorks., England
Class/Position: o - no, d - scout
Gametype: IvDZ
Posts Rated Helpful 18 Times
Quote:
Any way to get the current map's name?
(if not plz add for next patch squeek kthxbye)

Attempting to make a system to rate maps, which I'll expand into a full map voting system.

( Also would really like to know if there's a nice and simple way of making a list short of just making a large table and annoying the hell out of all server admins by forcing them to be unable to copy-paste their old map lists. :P )
EDIT: Found it! host_map is a cvar that shows the current map file.

EDIT 2: NOPE. host_map is a client variable, that is set to 0 on the server. Therefore, Lua can't actually use it. Brilliant.
__________________
gg ff not ded
ff very much alive

Last edited by ddm999; 05-10-2014 at 05:09 PM. Reason: god damn it
ddm999 is offline   Reply With Quote