Jump to content

Loading a mutator with SurveyVote


Crnyo

Recommended Posts

I've created a mutator which I want loaded only if players pass a vote.

I have been thinking of using Survey Vote class for this. Easiest solution would be to just add

under Execute() function in Rx_VoteMenuChoice_Survey the following line:

if (TopString == "Initialize Mod") InitMyMod;

however I do not want to edit game source code. So alternative I have been thinking about is to find the

GlobalVote instanced object in my mutator class

var Rx_VoteMenuChoice Global_Vote;

foreach AllObject (class'Rx_VoteMenuChoice', Global_Vote)

Now that I have access to game's GlobalVote variable I can use Tick function to check every frame whether there is vote with String=="Init Mod" running.

Will this method be too resource-intensive? Is there a better way to use RenX vote system to load a mutator?

Edited by Guest
Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...