]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Revert "Revert "Merge branch 'Mario/ctf_colormaps' into 'master'" because it breaks...
authorterencehill <piuntn@gmail.com>
Sat, 15 Oct 2022 10:17:59 +0000 (12:17 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 15 Oct 2022 10:17:59 +0000 (12:17 +0200)
This reverts commit b299b9bcb82c12791406f3540305919414d745a7.

55 files changed:
models/ctf/banner.tga [new file with mode: 0644]
models/ctf/banner_blue.tga [deleted file]
models/ctf/banner_gloss.tga [new file with mode: 0644]
models/ctf/banner_neutral.tga [deleted file]
models/ctf/banner_neutral_gloss.tga [deleted file]
models/ctf/banner_pink.tga [deleted file]
models/ctf/banner_pink_gloss.tga [deleted file]
models/ctf/banner_red.tga [deleted file]
models/ctf/banner_red_gloss.tga [deleted file]
models/ctf/banner_shirt.tga [new file with mode: 0644]
models/ctf/banner_yellow.tga [deleted file]
models/ctf/banner_yellow_gloss.tga [deleted file]
models/ctf/flag.tga [new file with mode: 0644]
models/ctf/flag_blue.tga [deleted file]
models/ctf/flag_blue_gloss.tga [deleted file]
models/ctf/flag_blue_glow.tga [deleted file]
models/ctf/flag_blue_norm.tga [deleted file]
models/ctf/flag_gloss.tga [new file with mode: 0644]
models/ctf/flag_glow.tga [new file with mode: 0644]
models/ctf/flag_neutral.tga [deleted file]
models/ctf/flag_neutral_gloss.tga [deleted file]
models/ctf/flag_neutral_glow.tga [deleted file]
models/ctf/flag_neutral_norm.tga [deleted file]
models/ctf/flag_norm.tga [new file with mode: 0644]
models/ctf/flag_pink.tga [deleted file]
models/ctf/flag_pink_gloss.tga [deleted file]
models/ctf/flag_pink_glow.tga [deleted file]
models/ctf/flag_pink_norm.tga [deleted file]
models/ctf/flag_red.tga [deleted file]
models/ctf/flag_red_gloss.tga [deleted file]
models/ctf/flag_red_glow.tga [deleted file]
models/ctf/flag_red_norm.tga [deleted file]
models/ctf/flag_yellow.tga [deleted file]
models/ctf/flag_yellow_gloss.tga [deleted file]
models/ctf/flag_yellow_glow.tga [deleted file]
models/ctf/flag_yellow_norm.tga [deleted file]
models/ctf/flags.md3_0.skin
models/ctf/flags.md3_1.skin [deleted file]
models/ctf/flags.md3_2.skin [deleted file]
models/ctf/flags.md3_3.skin [deleted file]
models/ctf/flags.md3_4.skin [deleted file]
models/ctf/glow.tga [new file with mode: 0644]
models/ctf/glow_blue.tga [deleted file]
models/ctf/glow_blue_glow.tga [deleted file]
models/ctf/glow_glow.tga [new file with mode: 0644]
models/ctf/glow_neutral.tga [deleted file]
models/ctf/glow_neutral_glow.tga [deleted file]
models/ctf/glow_pink.tga [deleted file]
models/ctf/glow_pink_glow.tga [deleted file]
models/ctf/glow_red.tga [deleted file]
models/ctf/glow_red_glow.tga [deleted file]
models/ctf/glow_yellow.tga [deleted file]
models/ctf/glow_yellow_glow.tga [deleted file]
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc
scripts/ctf.shader

diff --git a/models/ctf/banner.tga b/models/ctf/banner.tga
new file mode 100644 (file)
index 0000000..718d40b
Binary files /dev/null and b/models/ctf/banner.tga differ
diff --git a/models/ctf/banner_blue.tga b/models/ctf/banner_blue.tga
deleted file mode 100644 (file)
index 8b95589..0000000
Binary files a/models/ctf/banner_blue.tga and /dev/null differ
diff --git a/models/ctf/banner_gloss.tga b/models/ctf/banner_gloss.tga
new file mode 100644 (file)
index 0000000..77168a8
Binary files /dev/null and b/models/ctf/banner_gloss.tga differ
diff --git a/models/ctf/banner_neutral.tga b/models/ctf/banner_neutral.tga
deleted file mode 100644 (file)
index 5c3de94..0000000
Binary files a/models/ctf/banner_neutral.tga and /dev/null differ
diff --git a/models/ctf/banner_neutral_gloss.tga b/models/ctf/banner_neutral_gloss.tga
deleted file mode 100644 (file)
index 77168a8..0000000
Binary files a/models/ctf/banner_neutral_gloss.tga and /dev/null differ
diff --git a/models/ctf/banner_pink.tga b/models/ctf/banner_pink.tga
deleted file mode 100644 (file)
index 68e65b6..0000000
Binary files a/models/ctf/banner_pink.tga and /dev/null differ
diff --git a/models/ctf/banner_pink_gloss.tga b/models/ctf/banner_pink_gloss.tga
deleted file mode 100644 (file)
index 77168a8..0000000
Binary files a/models/ctf/banner_pink_gloss.tga and /dev/null differ
diff --git a/models/ctf/banner_red.tga b/models/ctf/banner_red.tga
deleted file mode 100644 (file)
index a64aa36..0000000
Binary files a/models/ctf/banner_red.tga and /dev/null differ
diff --git a/models/ctf/banner_red_gloss.tga b/models/ctf/banner_red_gloss.tga
deleted file mode 100644 (file)
index 77168a8..0000000
Binary files a/models/ctf/banner_red_gloss.tga and /dev/null differ
diff --git a/models/ctf/banner_shirt.tga b/models/ctf/banner_shirt.tga
new file mode 100644 (file)
index 0000000..8c0b709
Binary files /dev/null and b/models/ctf/banner_shirt.tga differ
diff --git a/models/ctf/banner_yellow.tga b/models/ctf/banner_yellow.tga
deleted file mode 100644 (file)
index b398e88..0000000
Binary files a/models/ctf/banner_yellow.tga and /dev/null differ
diff --git a/models/ctf/banner_yellow_gloss.tga b/models/ctf/banner_yellow_gloss.tga
deleted file mode 100644 (file)
index 77168a8..0000000
Binary files a/models/ctf/banner_yellow_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag.tga b/models/ctf/flag.tga
new file mode 100644 (file)
index 0000000..9e67747
Binary files /dev/null and b/models/ctf/flag.tga differ
diff --git a/models/ctf/flag_blue.tga b/models/ctf/flag_blue.tga
deleted file mode 100644 (file)
index 63feddd..0000000
Binary files a/models/ctf/flag_blue.tga and /dev/null differ
diff --git a/models/ctf/flag_blue_gloss.tga b/models/ctf/flag_blue_gloss.tga
deleted file mode 100644 (file)
index 3e92985..0000000
Binary files a/models/ctf/flag_blue_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag_blue_glow.tga b/models/ctf/flag_blue_glow.tga
deleted file mode 100644 (file)
index 8605da1..0000000
Binary files a/models/ctf/flag_blue_glow.tga and /dev/null differ
diff --git a/models/ctf/flag_blue_norm.tga b/models/ctf/flag_blue_norm.tga
deleted file mode 100644 (file)
index 07d5e17..0000000
Binary files a/models/ctf/flag_blue_norm.tga and /dev/null differ
diff --git a/models/ctf/flag_gloss.tga b/models/ctf/flag_gloss.tga
new file mode 100644 (file)
index 0000000..3e92985
Binary files /dev/null and b/models/ctf/flag_gloss.tga differ
diff --git a/models/ctf/flag_glow.tga b/models/ctf/flag_glow.tga
new file mode 100644 (file)
index 0000000..bb5dfae
Binary files /dev/null and b/models/ctf/flag_glow.tga differ
diff --git a/models/ctf/flag_neutral.tga b/models/ctf/flag_neutral.tga
deleted file mode 100644 (file)
index 63feddd..0000000
Binary files a/models/ctf/flag_neutral.tga and /dev/null differ
diff --git a/models/ctf/flag_neutral_gloss.tga b/models/ctf/flag_neutral_gloss.tga
deleted file mode 100644 (file)
index 3e92985..0000000
Binary files a/models/ctf/flag_neutral_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag_neutral_glow.tga b/models/ctf/flag_neutral_glow.tga
deleted file mode 100644 (file)
index 77191ab..0000000
Binary files a/models/ctf/flag_neutral_glow.tga and /dev/null differ
diff --git a/models/ctf/flag_neutral_norm.tga b/models/ctf/flag_neutral_norm.tga
deleted file mode 100644 (file)
index 07d5e17..0000000
Binary files a/models/ctf/flag_neutral_norm.tga and /dev/null differ
diff --git a/models/ctf/flag_norm.tga b/models/ctf/flag_norm.tga
new file mode 100644 (file)
index 0000000..07d5e17
Binary files /dev/null and b/models/ctf/flag_norm.tga differ
diff --git a/models/ctf/flag_pink.tga b/models/ctf/flag_pink.tga
deleted file mode 100644 (file)
index 63feddd..0000000
Binary files a/models/ctf/flag_pink.tga and /dev/null differ
diff --git a/models/ctf/flag_pink_gloss.tga b/models/ctf/flag_pink_gloss.tga
deleted file mode 100644 (file)
index 3e92985..0000000
Binary files a/models/ctf/flag_pink_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag_pink_glow.tga b/models/ctf/flag_pink_glow.tga
deleted file mode 100644 (file)
index ba70c08..0000000
Binary files a/models/ctf/flag_pink_glow.tga and /dev/null differ
diff --git a/models/ctf/flag_pink_norm.tga b/models/ctf/flag_pink_norm.tga
deleted file mode 100644 (file)
index 07d5e17..0000000
Binary files a/models/ctf/flag_pink_norm.tga and /dev/null differ
diff --git a/models/ctf/flag_red.tga b/models/ctf/flag_red.tga
deleted file mode 100644 (file)
index 63feddd..0000000
Binary files a/models/ctf/flag_red.tga and /dev/null differ
diff --git a/models/ctf/flag_red_gloss.tga b/models/ctf/flag_red_gloss.tga
deleted file mode 100644 (file)
index 3e92985..0000000
Binary files a/models/ctf/flag_red_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag_red_glow.tga b/models/ctf/flag_red_glow.tga
deleted file mode 100644 (file)
index dfe90a4..0000000
Binary files a/models/ctf/flag_red_glow.tga and /dev/null differ
diff --git a/models/ctf/flag_red_norm.tga b/models/ctf/flag_red_norm.tga
deleted file mode 100644 (file)
index 07d5e17..0000000
Binary files a/models/ctf/flag_red_norm.tga and /dev/null differ
diff --git a/models/ctf/flag_yellow.tga b/models/ctf/flag_yellow.tga
deleted file mode 100644 (file)
index 63feddd..0000000
Binary files a/models/ctf/flag_yellow.tga and /dev/null differ
diff --git a/models/ctf/flag_yellow_gloss.tga b/models/ctf/flag_yellow_gloss.tga
deleted file mode 100644 (file)
index 3e92985..0000000
Binary files a/models/ctf/flag_yellow_gloss.tga and /dev/null differ
diff --git a/models/ctf/flag_yellow_glow.tga b/models/ctf/flag_yellow_glow.tga
deleted file mode 100644 (file)
index 0af88a9..0000000
Binary files a/models/ctf/flag_yellow_glow.tga and /dev/null differ
diff --git a/models/ctf/flag_yellow_norm.tga b/models/ctf/flag_yellow_norm.tga
deleted file mode 100644 (file)
index 07d5e17..0000000
Binary files a/models/ctf/flag_yellow_norm.tga and /dev/null differ
index 489df22f419006fee5bb41eb28961d01467802d7..86a69eb307ca3c79b84acd45cd33c3b1d02c1411 100644 (file)
@@ -1,3 +1,3 @@
-mesh,models/ctf/flag_red.tga
-mesh2,models/ctf/banner_red.tga
-mesh3,models/ctf/glow_red.tga
\ No newline at end of file
+mesh,models/ctf/flag.tga
+mesh2,models/ctf/banner.tga
+mesh3,models/ctf/glow.tga
\ No newline at end of file
diff --git a/models/ctf/flags.md3_1.skin b/models/ctf/flags.md3_1.skin
deleted file mode 100644 (file)
index 47c5aeb..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-mesh,models/ctf/flag_blue.tga
-mesh2,models/ctf/banner_blue.tga
-mesh3,models/ctf/glow_blue.tga
\ No newline at end of file
diff --git a/models/ctf/flags.md3_2.skin b/models/ctf/flags.md3_2.skin
deleted file mode 100644 (file)
index 44fb67d..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-mesh,models/ctf/flag_yellow.tga
-mesh2,models/ctf/banner_yellow.tga
-mesh3,models/ctf/glow_yellow.tga
\ No newline at end of file
diff --git a/models/ctf/flags.md3_3.skin b/models/ctf/flags.md3_3.skin
deleted file mode 100644 (file)
index 22d77d2..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-mesh,models/ctf/flag_pink.tga
-mesh2,models/ctf/banner_pink.tga
-mesh3,models/ctf/glow_pink.tga
\ No newline at end of file
diff --git a/models/ctf/flags.md3_4.skin b/models/ctf/flags.md3_4.skin
deleted file mode 100644 (file)
index ba35e26..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-mesh,models/ctf/flag_neutral.tga
-mesh2,models/ctf/banner_neutral.tga
-mesh3,models/ctf/glow_neutral.tga
\ No newline at end of file
diff --git a/models/ctf/glow.tga b/models/ctf/glow.tga
new file mode 100644 (file)
index 0000000..7bb6358
Binary files /dev/null and b/models/ctf/glow.tga differ
diff --git a/models/ctf/glow_blue.tga b/models/ctf/glow_blue.tga
deleted file mode 100644 (file)
index 6968dc2..0000000
Binary files a/models/ctf/glow_blue.tga and /dev/null differ
diff --git a/models/ctf/glow_blue_glow.tga b/models/ctf/glow_blue_glow.tga
deleted file mode 100644 (file)
index 6968dc2..0000000
Binary files a/models/ctf/glow_blue_glow.tga and /dev/null differ
diff --git a/models/ctf/glow_glow.tga b/models/ctf/glow_glow.tga
new file mode 100644 (file)
index 0000000..5ffa098
Binary files /dev/null and b/models/ctf/glow_glow.tga differ
diff --git a/models/ctf/glow_neutral.tga b/models/ctf/glow_neutral.tga
deleted file mode 100644 (file)
index 5ffa098..0000000
Binary files a/models/ctf/glow_neutral.tga and /dev/null differ
diff --git a/models/ctf/glow_neutral_glow.tga b/models/ctf/glow_neutral_glow.tga
deleted file mode 100644 (file)
index 5ffa098..0000000
Binary files a/models/ctf/glow_neutral_glow.tga and /dev/null differ
diff --git a/models/ctf/glow_pink.tga b/models/ctf/glow_pink.tga
deleted file mode 100644 (file)
index 6a3bb8c..0000000
Binary files a/models/ctf/glow_pink.tga and /dev/null differ
diff --git a/models/ctf/glow_pink_glow.tga b/models/ctf/glow_pink_glow.tga
deleted file mode 100644 (file)
index 8da95a9..0000000
Binary files a/models/ctf/glow_pink_glow.tga and /dev/null differ
diff --git a/models/ctf/glow_red.tga b/models/ctf/glow_red.tga
deleted file mode 100644 (file)
index 9702b0b..0000000
Binary files a/models/ctf/glow_red.tga and /dev/null differ
diff --git a/models/ctf/glow_red_glow.tga b/models/ctf/glow_red_glow.tga
deleted file mode 100644 (file)
index 9702b0b..0000000
Binary files a/models/ctf/glow_red_glow.tga and /dev/null differ
diff --git a/models/ctf/glow_yellow.tga b/models/ctf/glow_yellow.tga
deleted file mode 100644 (file)
index 8562caa..0000000
Binary files a/models/ctf/glow_yellow.tga and /dev/null differ
diff --git a/models/ctf/glow_yellow_glow.tga b/models/ctf/glow_yellow_glow.tga
deleted file mode 100644 (file)
index 8562caa..0000000
Binary files a/models/ctf/glow_yellow_glow.tga and /dev/null differ
index 670b00fa42c0a2b56877c395efa355b535b88259..5fbb2b2a68ea985daa18c8200f533973b7c8a433 100644 (file)
@@ -1304,6 +1304,11 @@ void ctf_FlagSetup(int teamnum, entity flag) // called when spawning a flag enti
        flag.nextthink = time + FLAG_THINKRATE;
        flag.ctf_status = FLAG_BASE;
 
+       // set correct team colors
+       flag.glowmod = Team_ColorRGB(teamnum);
+       flag.colormap = (teamnum) ? (teamnum - 1) * 0x11 : 0x00;
+       flag.colormap |= BIT(10); // RENDER_COLORMAPPED
+
        // crudely force them all to 0
        if(autocvar_g_ctf_score_ignore_fields)
                flag.cnt = flag.score_assist = flag.score_team_capture = flag.score_capture = flag.score_drop = flag.score_pickup = flag.score_return = 0;
index 827d7c5a701e7f765046638ce6e027150e891c38..8cb101f120d6a8b31d7dd71069bb3039b8624e0c 100644 (file)
@@ -1,43 +1,7 @@
-models/ctf/glow_red
+models/ctf/glow
 {
  {
-       map models/ctf/glow_red.tga
-       tcMod scale 0.03 0.03
-       tcMod scroll 0.1 -0.04
-       tcMod rotate 0.1
- }
-}
-models/ctf/glow_blue
-{
- {
-       map models/ctf/glow_blue.tga
-       tcMod scale 0.03 0.03
-       tcMod scroll 0.1 -0.04
-       tcMod rotate 0.1
- }
-}
-models/ctf/glow_yellow
-{
- {
-       map models/ctf/glow_yellow.tga
-       tcMod scale 0.03 0.03
-       tcMod scroll 0.1 -0.04
-       tcMod rotate 0.1
- }
-}
-models/ctf/glow_pink
-{
- {
-       map models/ctf/glow_pink.tga
-       tcMod scale 0.03 0.03
-       tcMod scroll 0.1 -0.04
-       tcMod rotate 0.1
- }
-}
-models/ctf/glow_neutral
-{
- {
-       map models/ctf/glow_neutral.tga
+       map models/ctf/glow.tga
        tcMod scale 0.03 0.03
        tcMod scroll 0.1 -0.04
        tcMod rotate 0.1