Announcement

Collapse
No announcement yet.

Mod to disable turrets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    changing the prefix does not convert a map. There is no reason to make players download an additional map if the map is already defined as being compatible with your gametype (in Worldinfo), and if you are not really adding any benefits to the map (better spawns for non-team games, for example)

    Comment


      #17
      Originally posted by NickG View Post
      changing the prefix does not convert a map. There is no reason to make players download an additional map if the map is already defined as being compatible with your gametype (in Worldinfo), and if you are not really adding any benefits to the map (better spawns for non-team games, for example)
      I can only tell you that I have done it. I save a VCTF map to "my documents". I change the prefix to DM. I drop it back into the maps folder. It plays as VDM. Players on my server do the same for the maps we use. You can say it's not possible as much as you want, but, that won't make it true. Try it. As for the rest of your post, I have no idea what all of that is supposed to mean or what it has to do with the original topic.

      Comment


        #18
        You do not need to rename the files in order to play the maps. Renaming files is redundant, same like deleting specific actor of a map. If you want a VDM (VTDM) gametype, you could easily create a ini for this.

        VTDM.ini
        Code:
        [VTDM UTUIDataProvider_GameModeInfo]
        GameMode=UTGame.UTTeamGame
        GameSettingsClass=UTGameSettingsTDM
        GameSearchClass=UTGameSearchTDM
        PreviewImageMarkup=<Images:UI_FrontEnd_Art.GameTypes.TeamDeathmatch>
        DefaultMap=DM-Deck
        Prefixes=VCTF|WAR
        OptionSet=TDM
        IconImage=UI_HUD.HUD.UI_HUD_BaseD
        IconU=571
        IconV=76
        IconUL=149
        IconVL=105
        FriendlyName=Vehicle TDM
        Description=Team-based deathmatch action with vehicles.
        
        [VDM UTUIDataProvider_GameModeInfo]
        GameMode=UTGame.UTDeathmatch
        GameSettingsClass=UTgameSettingsDM
        GameSearchClass=UTGameSearchDM
        PreviewImageMarkup=<Images:UI_FrontEnd_Art.GameTypes.Deathmatch>
        DefaultMap=DM-Deck
        Prefixes=VCTF|WAR
        OptionSet=DM
        IconImage=UI_HUD.HUD.UI_HUD_BaseD
        IconU=442
        IconV=76
        IconUL=129
        IconVL=104
        FriendlyName=Vehicle DM
        Description=Free-for-all deathmatch action with vehicles.
        The best solution is to create your own gametype.

        Comment


          #19
          Originally posted by RattleSN4K3 View Post
          You do not need to rename the files in order to play the maps. Renaming files is redundant, same like deleting specific actor of a map. If you want a VDM (VTDM) gametype, you could easily create a ini for this.

          VTDM.ini
          Code:
          [VTDM UTUIDataProvider_GameModeInfo]
          GameMode=UTGame.UTTeamGame
          GameSettingsClass=UTGameSettingsTDM
          GameSearchClass=UTGameSearchTDM
          PreviewImageMarkup=<Images:UI_FrontEnd_Art.GameTypes.TeamDeathmatch>
          DefaultMap=DM-Deck
          Prefixes=VCTF|WAR
          OptionSet=TDM
          IconImage=UI_HUD.HUD.UI_HUD_BaseD
          IconU=571
          IconV=76
          IconUL=149
          IconVL=105
          FriendlyName=Vehicle TDM
          Description=Team-based deathmatch action with vehicles.
          
          [VDM UTUIDataProvider_GameModeInfo]
          GameMode=UTGame.UTDeathmatch
          GameSettingsClass=UTgameSettingsDM
          GameSearchClass=UTGameSearchDM
          PreviewImageMarkup=<Images:UI_FrontEnd_Art.GameTypes.Deathmatch>
          DefaultMap=DM-Deck
          Prefixes=VCTF|WAR
          OptionSet=DM
          IconImage=UI_HUD.HUD.UI_HUD_BaseD
          IconU=442
          IconV=76
          IconUL=129
          IconVL=104
          FriendlyName=Vehicle DM
          Description=Free-for-all deathmatch action with vehicles.
          The best solution is to create your own gametype.
          But, my way is so much easier and less complicated. I have no idea how to write code and at this stage of my life, I don't care to learn. I appreciate the fact that you're trying to help, but, I did say that I am a retired truck mechanic, not a coder. I wasn't joking.

          Comment


            #20
            not really easier if you have to do it for every map, and your players have to download the same maps again for the sake of your ignorance.

            Comment


              #21
              If you are lucky maybe that can be done easily with the function bool CheckReplacement(Actor Other)
              But well.... each time I try something in Unrealscript I have many surprises and days of work
              Remember Vehicle invasion, map converter CTF?

              Comment


                #22
                someone already made it
                Originally posted by RattleSN4K3 View Post
                Ah okay. So here we go

                It's basically this code
                Code:
                class NoTurretsMutator extends UTMutator;
                
                function InitMutator( string Options, out string ErrorMessage )
                {
                    super.InitMutator( options, ErrorMessage );
                }
                
                function bool CheckReplacement( Actor Other )
                {
                    if (UTVehicleFactory_TrackTurretBase(Other) !=none) {
                        UTVehicleFactory_TrackTurretBase(Other).VehicleClassPath = "";
                        UTVehicleFactory_TrackTurretBase(Other).VehicleClass = none;
                        return false;
                    }
                
                    // return true to keep this actor
                    return true;
                }
                
                DefaultProperties
                {
                }
                It will remove any turret which will be spawned with the vehicle factory base UTVehicleFactory_TrackTurretBase.

                Here's a compiled mutator.
                NoTurrets_v0.1.zip

                Comment

                Working...
                X