Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Опубликовано:

This doesn't seem to work on Search and Destroy, and I was wondering if anyone knew any other way to reset each team's score?

 

Thanks in advance, I couldn't find anything.

 

Also w/o using fast_restart.

 

on another note, there's "beretta_akimbo_mp", but it doesn't actually give you akimbo M9s

Featured Replies

Опубликовано:
  • Автор

SetTeamScore actually does work, as I've just discovered, I guess I was calling it at a bad time.

 

Next problem is that after the round which I reset the score to 0, when the round is won, it re-adds that round that should've been reset to 0.

 

I tried resetting these 2 variables to 0, as it seems to be what determines the rounds won by a team:

 

game["roundsWon"]["axis"] = 0;

game["roundsWon"]["allies"] = 0;

 

but to no avail (so far, anyways, but maybe I'm doing something here wrong).

Опубликовано:
JoeyB":hxsa32pm]This doesn't seem to work on Search and Destroy, and I was wondering if anyone knew any other way to reset each team's score?

 

Thanks in advance, I couldn't find anything.

 

Also w/o using fast_restart.

 

Yep, i know one. It's done i promod to reset the roundsplayed, player scores and team scores in match mode after knife round.

 

Search for this part in _gamelogic.gsc

if ( !wasOnlyRound() && !nukeDetonated )
{
	setDvar( "scr_gameended", 2 );

	displayRoundEnd( winner, endReasonText );

	if ( level.showingFinalKillcam )
	{
		foreach ( player in level.players )
			player notify ( "reset_outcome" );

		level notify ( "game_cleanup" );

		waittillFinalKillcamDone();
	}

 

and add this below:

 

	if (isDefined(game["random_variable"]) && game["random_variable"])
   {
			game["roundsPlayed"] = 0;

			foreach ( player in level.players ) 
			{
				player.pers["kills"] = 0;
                   player.pers["deaths"] = 0;
                   player.pers["assists"] = 0;
                   player.pers["score"] = 0;
				player.pers["suicides"] = 0;
                   waittillframeend;
			}

		   if ( winner == "axis" || winner == "allies" )
				game["roundsWon"][winner]--;

			maps\mp\gametypes\_gamescore::updateTeamScore( "axis" );
			maps\mp\gametypes\_gamescore::updateTeamScore( "allies" );

			maps\mp\gametypes\_gamescore::updatePlacement();

			rankedMatchUpdates( winner );
     }

 

NOTE: The if statement with the random_variable is obviously just an example and you might want to use

game["roundsWon"][winner] = 0; instead of game["roundsWon"][winner] --;

Опубликовано:
  • Автор

I got it working now; thanks for the help anyways.

 

I'm adding a 'warm up' round to my iSnipe SND server, probably release it to the public for regular snd servers as well if anyone wants it. I'm not a master at GSC haha so it's not too great. Pretty much reads all hand guns into an array, chooses a random one, then assigns it to a level variable, which it gives to everyone.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.