Ukill Posted February 20, 2017 Share Posted February 20, 2017 (edited) Can anybody tell me why this does not work online Offline it added an extra option to the VoteMenu. (Compiled file : Rx_Mutator_VoteMenu.u ) How do i get it to run on my server ? Rx_Mutator_VoteMenu : (Content) // ***************************************************************************** // * * * * * * * * * * * * Rx_Mutator_VoteMenu * * * * * * * * * * * * * * // ***************************************************************************** class Rx_Mutator_VoteMenu extends Rx_Mutator; event PreBeginPlay() { local Rx_VoteMenuHandler VoteMod; super.PreBeginPlay(); VoteMod=Rx_VoteMenuHandler(GetDefaultObject(Class'Rx_VoteMenuHandler')); VoteMod.VoteChoiceClasses[8] = class'Rx_VoteMenuChoice_ExtraChoice'; } final static function object GetDefaultObject(class ObjClass) { return FindObject(ObjClass.GetPackageName()$".Default__"$ObjClass, ObjClass); } defaultproperties { } Rx_VoteMenuChoice_ExtraChoice : (Content) // ***************************************************************************** // * * * * * * * * * Rx_VoteMenuChoice_ExtraChoice * * * * * * * * * * * * * * // ***************************************************************************** class Rx_VoteMenuChoice_ExtraChoice extends Rx_VoteMenuChoice; function Init() { ToTeam = Handler.PlayerOwner.PlayerReplicationInfo.Team.TeamIndex; Finish(); } function string ComposeTopString() { return super.ComposeTopString() $ " is calling for turn mode1"; } function Execute(Rx_Game game) { // Do something } DefaultProperties { PercentYesToPass=0.20f MenuDisplayString = "ExtraChoice" } I did found the code below, maybe it help to solve the problem : if(Rx_Controller(PlayerOwner) !=none && Rx_Controller(PlayerOwner).VoteHandler != none) { if(Rx_Controller(PlayerOwner).VoteHandler.VoteChoiceClasses.Length < (8+ExtraVoteNum)) { Rx_Controller(PlayerOwner).VoteHandler.VoteChoiceClasses.AddItem(class'RenX_CommanderMod.Rx_VoteMenuChoice_Commander'); //1 } } Edited February 20, 2017 by Ukill 1 Quote Link to comment Share on other sites More sharing options...
Ukill Posted February 24, 2017 Author Share Posted February 24, 2017 On this moment i did find out 2 solutions : 1. Just duplicate the votesystem, make it unique and disable old system. 2. Extend the current votesystem (In my opinion this one got more limitations, but is more easy to implement) Quote Link to comment Share on other sites More sharing options...
Ukill Posted March 2, 2017 Author Share Posted March 2, 2017 To complete this Topic : On 24-2-2017 at 6:44 PM, Ukill said: 2. Extend the current votesystem (In my opinion this one got more limitations, but is more easy to implement) The way to do this can be found in the Rx_Mutator_AdminTool mutator, which are placed in the Download section, under Modifications (see link below) : Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.