• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Need help with const error in change weapon stats mutator

Hi, I am trying to make a simple mutator to change weapon stats. As a test I am just trying to change the weapon name. However, I am getting the error "Error, Can't assign Const variables"

Is there a way to change weapon properties? I am using this thread as a reference. It seems to work in Killing Floor:

http://forums.tripwireinteractive.com/showthread.php?t=46134&page=2

Thanks!

Code

Code:
class RiflesMutator extends Mutator;

function PostBeginPlay()
{
	class'ROWeap_Kar98_Rifle'.default.CapitalizedDisplayName="TEST";
}

defaultproperties
{
    GroupName="KFExampleMutator"
    FriendlyName="Example Mutator"
    Description="Mutator description here"
}

Log Snippet

Code:
[0011.18] Heading: --------------------Civil - Release--------------------
[0011.18] Log: Analyzing...
[0011.18] Log: PackageName = Civil, LastPackagename = WebAdmin
[0011.18] Log: Loading global macros for Civil
[0011.18] Log: [UCI] Processing include file Civil\Globals.uci, PackageName = Civil
[0011.18] Log: Find files in ..\..\ROGame\Src\Civil\*.uci
[0011.19] Error: D:\Program Files\Steam\SteamApps\common\Red Orchestra 2\Development\Src\Civil\Classes\RiflesMutator.uc(6) : Error, Can't assign Const variables
[0011.19] Log: Compile aborted due to errors.
[0011.27] Log: 
[0011.27] Log: Warning/Error Summary
[0011.27] Log: ---------------------
[0011.27] Log: D:\Program Files\Steam\SteamApps\common\Red Orchestra 2\Development\Src\Civil\Classes\RiflesMutator.uc(6) : Error, Can't assign Const variables
[0011.27] Log: 
[0011.27] Log: Failure - 1 error(s), 0 warning(s)
[0011.27] Log: 
Execution of commandlet took:  3.89 seconds
[0011.28] Exit: Preparing to exit.
[0012.47] Exit: Object subsystem successfully closed.
[0012.48] Log: Shutting down FaceFX...
[0012.48] Log: FaceFX shutdown.
[0012.48] DevDataBase: Spent 0.000013 seconds communicating with "Provider=sqloledb;Data Source=production-db;Initial Catalog=EngineTaskPerf;Trusted_Connection=Yes;Connection Timeout=2" or "10.1.20.20"
[0012.48] Exit: Exiting.
[0012.48] Log: Log file closed, 08/25/12 21:43:18
 
Last edited:
Upvote 0