Moderator: Forum Guards
replication
{
If(Role<ROLE_Authority)
ScopeOnAltfireSettings, ScopeOffDefaultSettings;
}
simulated function PreBeginPlay()
{} // This will over-ride the PreBeginPlay defaults set out in the parent versions of this class
simulated function WeaponSelected(DeusExPlayer Player)
{
Player=DeusExPlayer(Owner);
if(Player!=None)
{
Player.ClientMessage("This weapon has 2 fire modes. Press your Scope key to switch between them.");
}
}
simulated function RefreshScopeDisplay(DeusExPlayer player, bool bInstant, bool bScopeOn)
{
Player=DeusExPlayer(Owner);
if(bScopeOn && (Player !=None))
{
ScopeOnAltfireSettings(player);
}
else if (!bScopeOn)
{
ScopeOffDefaultSettings(player);
}
}
Function ScopeOnAitfireSettings(deusExPlayer P)
{
P=DeusExPlayer(Owner);
if(P!=None)
{
//Put whatever shizz you want settings wise for the altfire mode
}
}
Function ScopeOnAitfireSettings(deusExPlayer P)
{
P=DeusExPlayer(Owner);
if(P!=None)
{
//Put whatever your gun's non-altfire settings are (Can be found in defaultProperties)
}
}