[nexuiz-commits] r6647 - in trunk/data: models/onslaught qcsrc/server textures
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun May 3 19:50:46 EDT 2009
Author: morphed
Date: 2009-05-03 19:50:45 -0400 (Sun, 03 May 2009)
New Revision: 6647
Added:
trunk/data/models/onslaught/reactor_dead.md3
trunk/data/models/onslaught/reactor_dmg1.md3
trunk/data/models/onslaught/reactor_dmg2.md3
trunk/data/textures/core_dmg1.tga
trunk/data/textures/core_dmg1_glow.tga
trunk/data/textures/core_dmg2.tga
trunk/data/textures/core_dmg2_glow.tga
trunk/data/textures/reactor_dead.tga
trunk/data/textures/reactor_dmg1.tga
trunk/data/textures/reactor_dmg1_glow.tga
trunk/data/textures/reactor_dmg1_shirt.tga
trunk/data/textures/reactor_dmg2.tga
trunk/data/textures/reactor_dmg2_glow.tga
trunk/data/textures/reactor_dmg2_shirt.tga
Modified:
trunk/data/qcsrc/server/mode_onslaught.qc
Log:
onslaught - visible damage for generator ( code by Taoki )
Added: trunk/data/models/onslaught/reactor_dead.md3
===================================================================
(Binary files differ)
Property changes on: trunk/data/models/onslaught/reactor_dead.md3
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/models/onslaught/reactor_dmg1.md3
===================================================================
(Binary files differ)
Property changes on: trunk/data/models/onslaught/reactor_dmg1.md3
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/models/onslaught/reactor_dmg2.md3
===================================================================
(Binary files differ)
Property changes on: trunk/data/models/onslaught/reactor_dmg2.md3
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/data/qcsrc/server/mode_onslaught.qc
===================================================================
--- trunk/data/qcsrc/server/mode_onslaught.qc 2009-05-03 20:26:20 UTC (rev 6646)
+++ trunk/data/qcsrc/server/mode_onslaught.qc 2009-05-03 23:50:45 UTC (rev 6647)
@@ -416,6 +416,12 @@
self.think(); // do the first explosion now
onslaught_updatelinks();
}
+ if(self.health < cvar("g_onslaught_gen_health") * 0.75)
+ setmodel(self, "models/onslaught/reactor_dmg1.md3");
+ if(self.health < cvar("g_onslaught_gen_health") * 0.35)
+ setmodel(self, "models/onslaught/reactor_dmg2.md3");
+ if(self.health <= 0)
+ setmodel(self, "models/onslaught/reactor_dead.md3");
};
// update links after a delay
@@ -594,6 +600,9 @@
local entity e;
precache_model("models/onslaught/generator.md3");
precache_model("models/onslaught/generator_shield.md3");
+ precache_model("models/onslaught/reactor_dmg1.md3");
+ precache_model("models/onslaught/reactor_dmg2.md3");
+ precache_model("models/onslaught/reactor_dead.md3");
precache_sound("onslaught/generator_decay.wav");
precache_sound("weapons/grenade_impact.wav");
precache_sound("weapons/rocket_impact.wav");
Added: trunk/data/textures/core_dmg1.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/core_dmg1.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/core_dmg1_glow.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/core_dmg1_glow.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/core_dmg2.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/core_dmg2.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/core_dmg2_glow.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/core_dmg2_glow.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dead.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dead.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg1.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg1.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg1_glow.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg1_glow.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg1_shirt.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg1_shirt.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg2.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg2.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg2_glow.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg2_glow.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/data/textures/reactor_dmg2_shirt.tga
===================================================================
(Binary files differ)
Property changes on: trunk/data/textures/reactor_dmg2_shirt.tga
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the nexuiz-commits
mailing list