Jaymod

Jaymod - An Enemy Territory Mod

Skip to content

Panzerfaust availible if 20 players on the server and under

Anything else here related to the mod goes here.

Panzerfaust availible if 20 players on the server and under

Postby Bloodhound on Tue Aug 12, 2008 2:59 pm

Hello,

I hope i´m right here.

Server Data:
jaymod 2.1.8
Linux 2.60b

I want that if 20 Players on the server than that the Panzerfaust availible and if under 20 Players there the Panzerfaust will be locked

Is thats possible?

Thanks for Help
Bloodhound
Bloodhound
Server n00b
Server n00b
 
Posts: 4
Joined: Tue Aug 12, 2008 2:55 pm

Postby doa on Tue Aug 12, 2008 8:54 pm

AFAIK you can't do that.

You can specify a number or percentage if my memory server me correctly though
doa
Arty Whore
Arty Whore
 
Posts: 210
Joined: Wed Oct 11, 2006 9:09 pm
Location: Sunnyvale, CA

Postby Bricktop on Sat Aug 16, 2008 8:38 am

Nope, can't be done with plain Jaymod.

The problem is, that even if you use the team_maxPanzers [num%] syntax, the value gets rounded incorrectly (always being rounded up). So you'd think that if you set team_maxPanzers 10% and there are 9 players on a team, therefore the resulting amount of players allowed to use panzer is 0.9, panzer would be disabled. Even 1%, resulting in 0.09, leads to one player being allowed to use panzer.

You can achieve it with etadmin_mod though, but I'd much rather see this calculation fixed in Jaymod.

Since I don't like etadmin_mod (crappy code, lousy documentation, inactive developement) I'm working on a python script that lets you implement these kinds of advanced weapon restrictions. Will post it here as soon as I'm done.
Bricktop
Server n00b
Server n00b
 
Posts: 27
Joined: Sat Sep 09, 2006 4:55 pm
Location: Switzerland

Re: Panzerfaust availible if 20 players on the server and under

Postby barnie on Wed Dec 30, 2009 10:28 am

Did you ever get around to fixing this issue. Would be great to be able to restrict panza in jaymod.. :(
barnie
Server n00b
Server n00b
 
Posts: 1
Joined: Wed Dec 30, 2009 10:25 am




Return to Other Questions

Who is online

Users browsing this forum: No registered users and 1 guest


cron