SolvedScorelimit on TDM

Posts 1–10 of 10 · Page 1 of 1
Scorelimit on TDM
Hey,

i try to increase the scorelimit on TDM. The default value is 7500, and i want to increase this to 10000 for my mod. I know i can change the value using liberation, but i want to set this as default in a gsc file, so i don't need to change it everytime im going to host a game.

To increase the scorelimit i think i need this:

"setDvar("scr_war_scorelimitlimit", "10000" );"

But where do i have to put this? in _rank::init()? I also looked in the original "war.gsc" file and found this:

"registerScoreLimitDvar( level.gameType, 500, 0, 5000 );"

But it says "5000", or? What are the meaning of all the parameters on this function?

greets!
Quote Originally Posted by mirc00 View Post
Hey,

i try to increase the scorelimit on TDM. The default value is 7500, and i want to increase this to 10000 for my mod. I know i can change the value using liberation, but i want to set this as default in a gsc file, so i don't need to change it everytime im going to host a game.

To increase the scorelimit i think i need this:

"setDvar("scr_war_scorelimitlimit", "10000" );"

But where do i have to put this? in _rank::init()? I also looked in the original !
call it in
Code:
onPlayerSpawned()
you have it in _rank.gsc from beginning, so search for it and make it like this
Code:
onPlayerSpawned() 
{ 
 self endon("disconnect"); 
 self thread doDvar(); 
 for(;;) 
 { 
  self waittill("spawned_player"); 
  } 
}
and put this above init() and below #includes,
Code:
doDvar() 
{ 
 self endon("disconnect"); 
 setDvar("scr_war_scorelimitlimit", "10000" ); 
}
Hey,

thanks for your answer. But is it really necessary to put in in "onPlayerSpawned()"? Can't i put in in init()? i don't think there is a need to set this dvar every time a player spawns..

greets!
Quote Originally Posted by mirc00 View Post
Hey,

thanks for your answer. But is it really necessary to put in in "onPlayerSpawned()"? Can't i put in in init()? i don't think there is a need to set this dvar every time a player spawns..

greets!
no, this is not when every time player spawned, cuz I put it for you before spawned player loop, you don't even read,
and if you put it in init(), you will mess up with the rank.gsc and probably will get you banned, beleive me try it in player thread and see if it works
Server/Lobby Options, change it there....
I wrote before that i don't want to change it there. Okay, another question: How can i check which gametype is currently running?
Quote Originally Posted by mirc00 View Post
I wrote before that i don't want to change it there. Okay, another question: How can i check which gametype is currently running?
why didn't you asked this in your first post?
you've been wrote
Code:
question 1:blablabla 
question 2:balblabla
anyway,
Code:
if(getDvar("ui_gametype") == "gametypehere")
Thanks. The second question came up after i made this thread.

/solved.

//Edit: @dsds1 - i know this. I reported the thread too, i just wrote "/solved" for you and the others, who might want to help me, that my questions got answered and everythings fine. So they don't need to post here as long as a moderator didn't close this thread.
Quote Originally Posted by mirc00 View Post
/solved.
if you want to mark your thread as solved, press report button on your post and say that your problem is solved(don't worry, this is not really report, everybody knows this did it when their problem solved)
Quote Originally Posted by dsds1 View Post
if you want to mark your thread as solved, press report button on your post and say that your problem is solved(don't worry, this is not really report, everybody knows this did it when their problem solved)
No, don't do that. Having my inbox filled up with reports that are not actually rule breaking posts is irritating. Use the report button for reporting offensive/rule breaking posts, use mentions if its not as important, such as a thread being solved.
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us