Welcome, Guest. Please login or register.
Did you miss your activation email?
August 10, 2020, 05:05:28 pm

Login with username, password and session length
Search:     Advanced search
Savage: XR is a new patch for Savage, created by the Newerth.com staff. The XR1.1 Client is out now! Download it now!
190016 Posts in 11005 Topics by 18524 Members
Latest Member: h1ppy
* Home Forum Wiki Help Search Login Register
+  Newerth Forums
|-+  Savage XR
| |-+  General Savage XR Discussion
| | |-+  Do we need another public server?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Go Down Print
Author Topic: Do we need another public server?  (Read 2959 times)
XR Coder
Sr. Member
Posts: 357


View Profile
« Reply #15 on: October 06, 2017, 06:56:07 pm »

no idea if this is any help to you but you could show information about new votes ingame using this:

in theory you could also allow players to vote ingame by exposing a custom python command to do so.
while working on the ref python commands back then i remember me making a mistake which initially allowed everybody (including non-refs) to execute ref commands like /ref python kick.
You could abuse this behavior by simply adding a new ref python command that is available for everybody.

Let's take a look at this snippet taken from xr_setup-1.0x-sv_lin_prod/game/python/savage0.zip/sv_refs.py:
0: if method.find('kick')!=-1:
1:     if (server.GetClientInfo(index, INFO_REFSTATUS) == 'normal' and int(core.CvarGetValue('sv_ref_allowkick')) > 0) or (server.GetClientInfo(index, INFO_REFSTATUS) == 'god'):
2:         method=method.replace('kick','')
3:         kick(index,str(object))
4:     else:
5:         senddenymessage(index)
If you would remove the if-statement at line 1, then the /ref python kick command would be available for everybody.
In this way you could implement a new vote command that allows players to vote ingame and spare the players the hassle of going to external websites.

Community Serveradmin
XR Coder
Hero Member
Posts: 550

View Profile
« Reply #16 on: October 06, 2017, 11:15:14 pm »

I wrote my own notification for a warmup and a normal game (every 120s and 30m) for every registered client on the python. Still thanks  Afro
« Last Edit: October 06, 2017, 11:44:29 pm by drk » Logged

Pages: 1 [2] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.029 seconds with 20 queries.