team colors
This commit is contained in:
parent
d147eb102f
commit
8d3b845857
15 changed files with 6579 additions and 25 deletions
10
materials/players/molikman/mat_Molikman.tres
Normal file
10
materials/players/molikman/mat_Molikman.tres
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://cjb0h3of85nc2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d1rfpdlpfnt5w" path="res://textures/players/molikman/molikman_ingame_Molikman_red.png" id="1_qvmge"]
|
||||
|
||||
[resource]
|
||||
resource_local_to_scene = true
|
||||
resource_name = "mat_Molikman.001"
|
||||
cull_mode = 2
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = ExtResource("1_qvmge")
|
||||
|
|
@ -6207,6 +6207,13 @@ _subresources={
|
|||
"slice_99/start_frame": 0,
|
||||
"slices/amount": 0
|
||||
}
|
||||
},
|
||||
"materials": {
|
||||
"mat_Molikman.001": {
|
||||
"use_external/enabled": true,
|
||||
"use_external/fallback_path": "res://materials/players/molikman/mat_Molikman.tres",
|
||||
"use_external/path": "uid://cjb0h3of85nc2"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=2
|
||||
|
|
|
|||
|
|
@ -37,6 +37,14 @@ import_script/path=""
|
|||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={}
|
||||
_subresources={
|
||||
"materials": {
|
||||
"mat_Molikman": {
|
||||
"use_external/enabled": true,
|
||||
"use_external/fallback_path": "res://materials/players/molikman/mat_Molikman.tres",
|
||||
"use_external/path": "uid://cjb0h3of85nc2"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=2
|
||||
gltf/embedded_image_handling=1
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 461 KiB |
6520
scenes/molikman.tscn
6520
scenes/molikman.tscn
File diff suppressed because one or more lines are too long
|
|
@ -121,6 +121,8 @@ func start_round() -> void:
|
|||
if multiplayer.is_server():
|
||||
buy_timer.start()
|
||||
start_round.rpc()
|
||||
round_timer.stop()
|
||||
bomb_timer.stop()
|
||||
for container in object_containers:
|
||||
container.despawn()
|
||||
attackers_alive = 0
|
||||
|
|
|
|||
13
scripts/player/team_color_switcher.gd
Normal file
13
scripts/player/team_color_switcher.gd
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
extends Node
|
||||
|
||||
@export var material: StandardMaterial3D
|
||||
@export var player: Player
|
||||
@export var blue_team_texture: Texture2D
|
||||
|
||||
func _ready() -> void:
|
||||
on_player_spawned.call_deferred()
|
||||
|
||||
func on_player_spawned() -> void:
|
||||
await get_tree().process_frame
|
||||
if player.team == Session.TEAMS.DEFENCE:
|
||||
material.albedo_texture = blue_team_texture
|
||||
1
scripts/player/team_color_switcher.gd.uid
Normal file
1
scripts/player/team_color_switcher.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://b2djbdh05pbcn
|
||||
14
shaders/team_color.gdshader
Normal file
14
shaders/team_color.gdshader
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
shader_type spatial;
|
||||
|
||||
void vertex() {
|
||||
// Called for every vertex the material is visible on.
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Called for every pixel the material is visible on.
|
||||
}
|
||||
|
||||
//void light() {
|
||||
// // Called for every pixel for every light affecting the material.
|
||||
// // Uncomment to replace the default light processing function with this one.
|
||||
//}
|
||||
1
shaders/team_color.gdshader.uid
Normal file
1
shaders/team_color.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bv2xmvpe4rjhq
|
||||
BIN
textures/players/molikman/molikman_ingame_Molikman_blue.png
Normal file
BIN
textures/players/molikman/molikman_ingame_Molikman_blue.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 570 KiB |
|
|
@ -2,24 +2,20 @@
|
|||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c81mv6bw6gr6t"
|
||||
path.s3tc="res://.godot/imported/molikman_hands_tex_Molikman.png-309150e72c75bcb8d14d5eaef94f2a57.s3tc.ctex"
|
||||
uid="uid://15mf4452fse0"
|
||||
path="res://.godot/imported/molikman_ingame_Molikman_blue.png-e8f8f632f3fa13cafdacc1fa99eacb09.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "adf17223cdac27afac207ae40df37427"
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://models/characters/viewmodels/molikman_hands_tex_Molikman.png"
|
||||
dest_files=["res://.godot/imported/molikman_hands_tex_Molikman.png-309150e72c75bcb8d14d5eaef94f2a57.s3tc.ctex"]
|
||||
source_file="res://textures/players/molikman/molikman_ingame_Molikman_blue.png"
|
||||
dest_files=["res://.godot/imported/molikman_ingame_Molikman_blue.png-e8f8f632f3fa13cafdacc1fa99eacb09.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
|
|
@ -27,7 +23,7 @@ compress/rdo_quality_loss=0.0
|
|||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
|
|
@ -41,4 +37,4 @@ process/normal_map_invert_y=false
|
|||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
textures/players/molikman/molikman_ingame_Molikman_blue.png~
Normal file
BIN
textures/players/molikman/molikman_ingame_Molikman_blue.png~
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 KiB |
|
Before Width: | Height: | Size: 461 KiB After Width: | Height: | Size: 461 KiB |
|
|
@ -3,7 +3,7 @@
|
|||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d1rfpdlpfnt5w"
|
||||
path.s3tc="res://.godot/imported/molikman_ingame_tex_Molikman.png-fa994ec91481577d99049156480274fc.s3tc.ctex"
|
||||
path.s3tc="res://.godot/imported/molikman_ingame_Molikman_red.png-e758817b5b7c82ca8c249896133548a3.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
|
|
@ -14,8 +14,8 @@ generator_parameters={
|
|||
|
||||
[deps]
|
||||
|
||||
source_file="res://models/characters/worldmodels/molikman_ingame_tex_Molikman.png"
|
||||
dest_files=["res://.godot/imported/molikman_ingame_tex_Molikman.png-fa994ec91481577d99049156480274fc.s3tc.ctex"]
|
||||
source_file="res://textures/players/molikman/molikman_ingame_Molikman_red.png"
|
||||
dest_files=["res://.godot/imported/molikman_ingame_Molikman_red.png-e758817b5b7c82ca8c249896133548a3.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue