I am not the best coder by any means, but when I was working on a ctf addon for Oz Deathmatch, I tried the exact thing. In the maps, I added a key value to the spawn function, and in world spawn, I read in the value and set the game rules based on that. Only thing is, that I was never able to get it to work right. I would never set the gamerules in time...
Only thing I was able to make work, was to prefix the map with ctf_ . I know this is not what you really want to do, but it was not very hard, and worked great. On another note, if you go through the Gearbox fgd and maps, they have a ctf_detect keyvalue set for thier maps. So it is possible, just not sure how to do it though. Dave ----- Original Message ----- From: "Mark Gornall" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 26 November, 2002 00:57 Subject: [hlcoders] [hlcoders]choosing gamerules > Hi, > Is there a nice way to determine gamerules when the map loads? Say, by > looking for an entity in the map? I think gamerules might be set too early > on for such things as 'findentitybyclassname' to work, so is there another > way or do you have to just look at the 'prefix' on the map name (which I > rather avoid if possible). > > Thanks, > Mark. > > __________________________________________________________ > This mail has been scanned for all known viruses by UUNET > delivered through the MessageLabs Virus Control Centre. > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

