Ravenfield

Ravenfield

Not enough ratings
How to add custom flags to your map
By Chai
This guide will show you how to add custom flags to your map if the user has the Custom Flags Mutator Mod enabled

   
Award
Favorite
Favorited
Unfavorite
Introduction
The normal flags were getting a bit boring, so I created a Mutator Mod via Ravenscript [ravenfieldgame.com]that changes how they look like.
The custom flags will be automatically applied when the user plays on the map with the Custom Flags Mutator Mod enabled.
You can download the Mutator Mod here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2078141525

What you will need
Unity 5.6.7.1f/p
Ravenfield Modding Tools
The scene you want to have the Custom Flags on
Fast Version of how to add Custom Flags
Create three empty GameObjects and rename them "CustomFlagBlue","CustomFlagRed" and "CustomFlagNeutral".
Then add a Skinned Mesh Renderer to the GameObjects.
Now create the three materials with the "Flag" shader(found in Custom->Flag that should be included in the Ravenfield Modding Tools by default).
Finally just drag the materials onto the different Skinned Mesh Renderes.

How it should look like:
Step 1: Create the Game Objects
First you need to create a new empty GameObject. Do that by going to GameObject -> Create Empty

Great! Now make or just duplicate two more so that you have a total of three and rename them the following(Press F2 to rename) :
Name of GameObject
Function
CustomFlagBlue
Replaces the blue flag material
CustomFlagRed
Replaces the red flag material
CustomFlagNeutral
Replaces the neutral flag material
The naming order does not matter

IMPORTANT:: The names have to be named exacly like in the table above, or the material will be ignored!


Step 2: Add a Skinned Mesh Renderer
You should have three Objects now


Now you have to add a "Skinned Mesh Renderer" to all of the objects. See picture
Step 3: Create the material that the flags will use
Now you should have three objects with a Skinned Mesh Renderer on it!

Now we will create the materials, that have the custom flag textures on them.
For that, create a new material:

Nice! Click on the newly created material if you haven't already, and then press on the Dropdown menu where it says "Standard". See picture


Select the "Flag" shader under the category "Custom"


The material should look like this in the inspector now:



Fantastic! Now just drag your texture on the empty "Texture" Square. See picture

You can play with the flag shader variables and even create a Translucency Color!


Note:If your texture doesn't fit onto the flag (like in the picture below) use the Tiling and Offset function of the Shader.

Step 4: Apply the material to the Skinned Mesh Renderer
This step is pretty easy! Just drag the material onto the materials list of the Skinned Mesh Renderer.

Now do that for the remaining two and your all set!

26 Comments
Gladius 8 Nov, 2024 @ 3:11am 
Can you make MEC flag from battlefield 2?
tvosnme17 9 Aug, 2022 @ 2:26pm 
yeah
tvosnme17 9 Aug, 2022 @ 2:25pm 
wait so do i have to make a map
Hwacha self 28 Sep, 2020 @ 4:21pm 
I have followed all of the steps, but I am running into the problem of seeing the flag. It won't replace the texture of the flag already there and it won't create a new flag with the new texture, please help, I am lost.
Mari3tes 25 May, 2020 @ 10:42pm 
Yes cuz I can't find da wae
EnemySamurai169 14 May, 2020 @ 8:58pm 
bruh, last 12 comments are of a confused boi and the masta
Mari3tes 9 May, 2020 @ 10:26am 
The cloth itself is now invisible :(
Mari3tes 9 May, 2020 @ 7:49am 
Ah the Flag shader. yes i do
Mari3tes 9 May, 2020 @ 7:49am 
What material Shader??
Chai  [author] 9 May, 2020 @ 7:43am 
Are you using the right material shader?