Force class limitations?


(comcrap) #1

Is it possible through map scripting to force only a certain class? For example a sniper map where you can only choose the cov ops class and maybe just the sniper riffle?

I tried searching but only came across 1 thread from 2004 about it and it seemed like it was only possible through changing the etsource, now that etpub and jaymod are more advanced is it possible?

If it matters the server in quesiton would run the newest etpub.


(aburn) #2

well I am propably not answering your question… but.

when creating a server config u might do class restrictions… this I am for sure… I am not sure tho if a map can force a change in server config… if yes that would be a major leak cause there would be maps released that would let the mapper overtake the server by for exemple changeing the rcon pass…

But as long as the map u want to make runs on your server… where u set the config…
or As long as you explain how the map should be run:
for exemple if make a read.me file with explanation how the map should run.

It is just as easy as makeing a sandwitch.

ETAdmin_MOD has sum additionall features, but still I am not too sure if your map can mess with the server config or etadmin config…

The best way to over-walk this is just to write a READ.ME file IMO.

Maybe others would have better ideas… I am not the best you kno… :stuck_out_tongue:


(psyco_mario) #3

You could cover your whole map in a trigger muiltiple that targets all but coverts and link that to a trigger hurt, killing everyone but coverts :smiley:


(S14Y3R) #4

rofl, that’d work… :smiley:


(Roeltje) #5

or u make a start in a cage, and u cover that cage in a covert only trigger_multiple which is targetted to a target_teleporter

EDIT: maybe if u put a server.cfg in your pk3 and u make it overwrite the old server file?


(SCDS_reyalP) #6

I doubt you can cleanly do it with mapscript, but you can offer a suggested server config for that map.

ETPro lets admins limit classes and have map specific configurations. etadmin_mod and etpub has similar features.

ETpro doesn’t have weapon limits, except for soldiers, although you might be able to hack it in with the lua API.

I’m pretty certain that .cfg files are searched for outside of .pk3 files before looking inside (unlike most other files)


(comcrap) #7

I like Roeltje’s idea I think ill try that in combination with writing a config for admins to use to force the class restrictions, obviously working for etpub at least. :slight_smile:

Thanks guys


(Roeltje) #8

np, we’re here to help :wink: