Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTPlusStandaloneHitSounds.UTPlusSettings


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
/******************************************************************************
Client-side UTPlus settings.

Creation date: 2010-06-03 15:00
Last change: $Id$
Copyright © 2010, Wormbo
Website: http://www.koehler-homepage.de/Wormbo/
Feel free to reuse this code. Send me a note if you found it helpful or want
to report bugs/provide improvements.
Please ask for permission first, if you intend to make money off reused code.
******************************************************************************/

class UTPlusSettings extends Object config(User) PerObjectConfig;


//=============================================================================
// Hit sound settings
//=============================================================================

var(HitSounds) config array<string> HitSoundNames;
var(HitSounds) config int   HitSoundEnemy;
var(HitSounds) config int   HitSoundVehicle;
var(HitSounds) config int   HitSoundEmptyVehicle;
var(HitSounds) config int   HitSoundTeam;
var(HitSounds) config int   HitSoundObjective;
var(HitSounds) config float HitSoundVolume;
var(HitSounds) config bool  bHitSoundDamagePitch;


/** Returns an instance of the UTPlus client settings object. */
static final function UTPlusSettings GetInstance()
{
	/*
	This actually maps to the memory area of an existing UTPlusSettings object
	with the name "Client" and no outer object. Settings are re-initialized,
	so any attempt to change the configuration should change the properties
	and save the settings in one go.
	*/
	return new(None, "Client") class'UTPlusSettings';
}


//=============================================================================
// Default values
//=============================================================================

defaultproperties
{
	// hit sounds
	HitSoundNames[0]      = "Quake3"
	HitSoundNames[1]      = "Quake3Friendly"
	HitSoundNames[2]      = "TTM"
	HitSoundNames[3]      = "UTPure"
	HitSoundNames[4]      = "TournamentFriendly"
	HitSoundNames[5]      = "TournamentProtected"
	HitSoundNames[6]      = "UTPlusEmpty"
	HitSoundEnemy         = 0
	HitSoundVehicle       = 2
	HitSoundEmptyVehicle  = 6
	HitSoundTeam          = 4
	HitSoundObjective     = 3
	HitSoundVolume        = 1.5
	bHitSoundDamagePitch  = True
}


Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mo 29.8.2011 14:31:34.000 - Creation time: Sa 23.8.2014 09:19:04.594 - Created with UnCodeX