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://steamproxy.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
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?