]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add new powerup models
authorLegendaryGuard <rootuser999@gmail.com>
Tue, 15 Nov 2022 21:14:44 +0000 (22:14 +0100)
committerLegendaryGuard <rootuser999@gmail.com>
Tue, 15 Nov 2022 21:14:44 +0000 (22:14 +0100)
models/items/g_invincible.md3 [deleted file]
models/items/g_strength.md3 [deleted file]
models/relics/relic_powerup.md3 [new file with mode: 0644]
models/relics/relic_powerup.md3.framegroups [new file with mode: 0644]
models/relics/relic_powerup.md3_0.skin [new file with mode: 0644]
models/relics/relic_powerup.md3_1.skin [new file with mode: 0644]
qcsrc/common/mutators/mutator/powerups/powerup/shield.qh
qcsrc/common/mutators/mutator/powerups/powerup/strength.qh
scripts/simpleitems.shader

diff --git a/models/items/g_invincible.md3 b/models/items/g_invincible.md3
deleted file mode 100644 (file)
index 7097ec4..0000000
Binary files a/models/items/g_invincible.md3 and /dev/null differ
diff --git a/models/items/g_strength.md3 b/models/items/g_strength.md3
deleted file mode 100644 (file)
index 6159b5f..0000000
Binary files a/models/items/g_strength.md3 and /dev/null differ
diff --git a/models/relics/relic_powerup.md3 b/models/relics/relic_powerup.md3
new file mode 100644 (file)
index 0000000..58979a1
Binary files /dev/null and b/models/relics/relic_powerup.md3 differ
diff --git a/models/relics/relic_powerup.md3.framegroups b/models/relics/relic_powerup.md3.framegroups
new file mode 100644 (file)
index 0000000..4e33f6f
--- /dev/null
@@ -0,0 +1 @@
+0 99 30 1
\ No newline at end of file
diff --git a/models/relics/relic_powerup.md3_0.skin b/models/relics/relic_powerup.md3_0.skin
new file mode 100644 (file)
index 0000000..2046274
--- /dev/null
@@ -0,0 +1,6 @@
+cable1,textures/crylink_new
+cable2,textures/electronew
+ring,models/relics/relic_ring
+mesh,models/relics/relic
+sign,models/items/g_strength_luma
+crystal,models/relics/relic_ring
\ No newline at end of file
diff --git a/models/relics/relic_powerup.md3_1.skin b/models/relics/relic_powerup.md3_1.skin
new file mode 100644 (file)
index 0000000..5731050
--- /dev/null
@@ -0,0 +1,6 @@
+cable1,textures/crylink_new
+cable2,textures/electronew
+ring,models/relics/relic_ring
+mesh,models/relics/relic
+sign,models/items/g_invincible_luma
+crystal,models/relics/relic_ring
\ No newline at end of file
index 508a39487ae84309a8bf106f052a586a03f1967a..56a844dee72a09dce6ae9effb9a962262b51bf02 100644 (file)
@@ -9,7 +9,7 @@
 #endif
 
 #ifdef GAMEQC
-MODEL(Shield_ITEM, Item_Model("g_invincible.md3"));
+MODEL(Shield_ITEM, "models/relics/relic_powerup.md3");
 SOUND(Shield, Item_Sound("powerup_shield"));
 #endif
 
@@ -37,14 +37,15 @@ REGISTER_ITEM(Shield, Powerup) {
 #ifdef GAMEQC
     this.m_itemid           =   IT_INVINCIBLE;
     this.m_model            =   MDL_Shield_ITEM;
+    this.m_skin             =   1;
     this.m_sound            =   SND_Shield;
-    this.m_glow             =   true;
+    // this.m_glow             =   true;
     this.m_respawnsound     =   SND_SHIELD_RESPAWN;
 #endif
     this.netname            =   "invincible";
     this.m_name             =   _("Shield");
     this.m_icon             =   "shield";
-    this.m_color            =   '1 0 1';
+    this.m_color            =   '0.5 1 0';
     this.m_waypoint         =   _("Shield");
     this.m_waypointblink    =   2;
 }
index 9392a6a2d7c9755147633758befbe9252b5405f5..7af0cef02065055aa11fc8a46b9d00bbc3cbcb5e 100644 (file)
@@ -9,7 +9,7 @@
 #endif
 
 #ifdef GAMEQC
-MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
+MODEL(Strength_ITEM, "models/relics/relic_powerup.md3");
 SOUND(Strength, Item_Sound("powerup"));
 #endif
 
@@ -39,14 +39,15 @@ REGISTER_ITEM(Strength, Powerup) {
 #ifdef GAMEQC
     this.m_itemid           =   IT_STRENGTH;
     this.m_model            =   MDL_Strength_ITEM;
+    this.m_skin             =   0;
     this.m_sound            =   SND_Strength;
-    this.m_glow             =   true;
+    // this.m_glow             =   true;
     this.m_respawnsound     =   SND_STRENGTH_RESPAWN;
 #endif
     this.netname            =   "strength";
     this.m_name             =   _("Strength");
     this.m_icon             =   "strength";
-    this.m_color            =   '0 0 1';
+    this.m_color            =   '1 0.5 0';
     this.m_waypoint         =   _("Strength");
     this.m_waypointblink    =   2;
 }
index 76edd6dd30246f13657ace02dde5b708617b9ce5..3655f7ef738370b037a36f0de8a65f2d1782c916 100644 (file)
@@ -407,6 +407,28 @@ g_h100_simple // 100hp
 
 ////////// POWERUPS //////////
 
+models/items/g_strength_luma
+{
+       deformVertexes autosprite
+       cull none
+       nopicmip
+       {
+               map models/items/g_strength_luma
+               blendfunc add
+       }
+}
+
+models/items/g_invincible_luma
+{
+       deformVertexes autosprite
+       cull none
+       nopicmip
+       {
+               map models/items/g_invincible_luma
+               blendfunc add
+       }
+}
+
 g_strength_simple // strength
 {
        deformVertexes autosprite