Ravenfield

Ravenfield

评价数不足
How to add custom flags to your map
由 Chai 制作
This guide will show you how to add custom flags to your map if the user has the Custom Flags Mutator Mod enabled

   
奖励
收藏
已收藏
取消收藏
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://gtm.steamproxy.vip/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 条留言
Gladius 2024 年 11 月 8 日 上午 3:11 
Can you make MEC flag from battlefield 2?
tvosnme17 2022 年 8 月 9 日 下午 2:26 
yeah
tvosnme17 2022 年 8 月 9 日 下午 2:25 
wait so do i have to make a map
Hwacha self 2020 年 9 月 28 日 下午 4:21 
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 2020 年 5 月 25 日 下午 10:42 
Yes cuz I can't find da wae
EnemySamurai169 2020 年 5 月 14 日 下午 8:58 
bruh, last 12 comments are of a confused boi and the masta
Mari3tes 2020 年 5 月 9 日 上午 10:26 
The cloth itself is now invisible :(
Mari3tes 2020 年 5 月 9 日 上午 7:49 
Ah the Flag shader. yes i do
Mari3tes 2020 年 5 月 9 日 上午 7:49 
What material Shader??
Chai  [作者] 2020 年 5 月 9 日 上午 7:43 
Are you using the right material shader?