team colors

This commit is contained in:
Rendo 2025-11-30 13:23:54 +05:00
commit 8d3b845857
15 changed files with 6579 additions and 25 deletions

View 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")

View file

@ -6207,6 +6207,13 @@ _subresources={
"slice_99/start_frame": 0, "slice_99/start_frame": 0,
"slices/amount": 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 gltf/naming_version=2

View file

@ -37,6 +37,14 @@ import_script/path=""
materials/extract=0 materials/extract=0
materials/extract_format=0 materials/extract_format=0
materials/extract_path="" 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/naming_version=2
gltf/embedded_image_handling=1 gltf/embedded_image_handling=1

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 KiB

File diff suppressed because one or more lines are too long

View file

@ -121,6 +121,8 @@ func start_round() -> void:
if multiplayer.is_server(): if multiplayer.is_server():
buy_timer.start() buy_timer.start()
start_round.rpc() start_round.rpc()
round_timer.stop()
bomb_timer.stop()
for container in object_containers: for container in object_containers:
container.despawn() container.despawn()
attackers_alive = 0 attackers_alive = 0

View 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

View file

@ -0,0 +1 @@
uid://b2djbdh05pbcn

View 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.
//}

View file

@ -0,0 +1 @@
uid://bv2xmvpe4rjhq

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 KiB

View file

@ -2,24 +2,20 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://c81mv6bw6gr6t" uid="uid://15mf4452fse0"
path.s3tc="res://.godot/imported/molikman_hands_tex_Molikman.png-309150e72c75bcb8d14d5eaef94f2a57.s3tc.ctex" path="res://.godot/imported/molikman_ingame_Molikman_blue.png-e8f8f632f3fa13cafdacc1fa99eacb09.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "vram_texture": false
"vram_texture": true
}
generator_parameters={
"md5": "adf17223cdac27afac207ae40df37427"
} }
[deps] [deps]
source_file="res://models/characters/viewmodels/molikman_hands_tex_Molikman.png" source_file="res://textures/players/molikman/molikman_ingame_Molikman_blue.png"
dest_files=["res://.godot/imported/molikman_hands_tex_Molikman.png-309150e72c75bcb8d14d5eaef94f2a57.s3tc.ctex"] dest_files=["res://.godot/imported/molikman_ingame_Molikman_blue.png-e8f8f632f3fa13cafdacc1fa99eacb09.ctex"]
[params] [params]
compress/mode=2 compress/mode=0
compress/high_quality=false compress/high_quality=false
compress/lossy_quality=0.7 compress/lossy_quality=0.7
compress/uastc_level=0 compress/uastc_level=0
@ -27,7 +23,7 @@ compress/rdo_quality_loss=0.0
compress/hdr_compression=1 compress/hdr_compression=1
compress/normal_map=0 compress/normal_map=0
compress/channel_pack=0 compress/channel_pack=0
mipmaps/generate=true mipmaps/generate=false
mipmaps/limit=-1 mipmaps/limit=-1
roughness/mode=0 roughness/mode=0
roughness/src_normal="" roughness/src_normal=""
@ -41,4 +37,4 @@ process/normal_map_invert_y=false
process/hdr_as_srgb=false process/hdr_as_srgb=false
process/hdr_clamp_exposure=false process/hdr_clamp_exposure=false
process/size_limit=0 process/size_limit=0
detect_3d/compress_to=0 detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

View file

Before

Width:  |  Height:  |  Size: 461 KiB

After

Width:  |  Height:  |  Size: 461 KiB

Before After
Before After

View file

@ -3,7 +3,7 @@
importer="texture" importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://d1rfpdlpfnt5w" 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={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc"],
"vram_texture": true "vram_texture": true
@ -14,8 +14,8 @@ generator_parameters={
[deps] [deps]
source_file="res://models/characters/worldmodels/molikman_ingame_tex_Molikman.png" source_file="res://textures/players/molikman/molikman_ingame_Molikman_red.png"
dest_files=["res://.godot/imported/molikman_ingame_tex_Molikman.png-fa994ec91481577d99049156480274fc.s3tc.ctex"] dest_files=["res://.godot/imported/molikman_ingame_Molikman_red.png-e758817b5b7c82ca8c249896133548a3.s3tc.ctex"]
[params] [params]