r2677 - in trunk/data: models qcsrc/server sound/misc textures

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed May 23 11:59:06 EDT 2007


Author: div0
Date: 2007-05-23 11:59:06 -0400 (Wed, 23 May 2007)
New Revision: 2677

Added:
   trunk/data/models/hook.md3
   trunk/data/sound/misc/spawn.ogg
   trunk/data/textures/hook.tga
   trunk/data/textures/hook_gloss.tga
   trunk/data/textures/hook_glow.tga
   trunk/data/textures/hook_norm.tga
Removed:
   trunk/data/sound/misc/spawn.wav
Modified:
   trunk/data/qcsrc/server/g_hook.qc
   trunk/data/qcsrc/server/g_world.qc
   trunk/data/sound/misc/talk2.wav
Log:
tZork's grappling hook;
spawn sound by me (still, replace it);
talk2 sound = invshot (please replace)


Added: trunk/data/models/hook.md3
===================================================================
(Binary files differ)


Property changes on: trunk/data/models/hook.md3
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/data/qcsrc/server/g_hook.qc
===================================================================
--- trunk/data/qcsrc/server/g_hook.qc	2007-05-23 15:47:31 UTC (rev 2676)
+++ trunk/data/qcsrc/server/g_hook.qc	2007-05-23 15:59:06 UTC (rev 2677)
@@ -150,15 +150,9 @@
 		org = org + dir*50; // get the beam out of the player's eyes
 	}
 
-	WriteByte (MSG_BROADCAST, SVC_TEMPENTITY);
-	WriteByte (MSG_BROADCAST, TE_BEAM);
-	WriteEntity (MSG_BROADCAST, self);
-	WriteCoord (MSG_BROADCAST, self.origin_x);
-	WriteCoord (MSG_BROADCAST, self.origin_y);
-	WriteCoord (MSG_BROADCAST, self.origin_z);
-	WriteCoord (MSG_BROADCAST, org_x);
-	WriteCoord (MSG_BROADCAST, org_y);
-	WriteCoord (MSG_BROADCAST, org_z);
+	makevectors(self.angles);
+
+	te_beam(self, self.origin - v_forward * 4, org);
 }
 
 void GrapplingHookTouch (void)
@@ -226,7 +220,7 @@
 	missile.movetype = MOVETYPE_FLY;
 	missile.solid = SOLID_BBOX;
 
-	setmodel (missile, "models/ebomb.mdl"); // precision set below
+	setmodel (missile, "models/hook.md3"); // precision set below
 	setsize (missile, '-3 -3 -3', '3 3 3');
 	setorigin (missile, org);
 
@@ -242,7 +236,7 @@
 	missile.think = GrapplingHookThink;
 	missile.nextthink = time + 0.1;
 
-	missile.effects = EF_FULLBRIGHT | EF_ADDITIVE | EF_LOWPRECISION;
+	missile.effects = /*EF_FULLBRIGHT | EF_ADDITIVE |*/ EF_LOWPRECISION;
 
 	missile.health = cvar("g_balance_grapplehook_health");//120
 	missile.event_damage = GrapplingHook_Damage;

Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2007-05-23 15:47:31 UTC (rev 2676)
+++ trunk/data/qcsrc/server/g_world.qc	2007-05-23 15:59:06 UTC (rev 2677)
@@ -147,6 +147,7 @@
 	precache_model ("models/gibs/gib2.mdl");
 	precache_model ("models/gibs/gib3.mdl");
 	precache_model ("models/gibs/gib5.md3");
+	precache_model ("models/hook.md3");
 	precache_sound ("misc/armorimpact.wav");
 	precache_sound ("misc/bodyimpact1.wav");
 	precache_sound ("misc/bodyimpact2.wav");

Added: trunk/data/sound/misc/spawn.ogg
===================================================================
(Binary files differ)


Property changes on: trunk/data/sound/misc/spawn.ogg
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Deleted: trunk/data/sound/misc/spawn.wav
===================================================================
(Binary files differ)

Modified: trunk/data/sound/misc/talk2.wav
===================================================================
(Binary files differ)

Added: trunk/data/textures/hook.tga
===================================================================
(Binary files differ)


Property changes on: trunk/data/textures/hook.tga
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/data/textures/hook_gloss.tga
===================================================================
(Binary files differ)


Property changes on: trunk/data/textures/hook_gloss.tga
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/data/textures/hook_glow.tga
===================================================================
(Binary files differ)


Property changes on: trunk/data/textures/hook_glow.tga
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: trunk/data/textures/hook_norm.tga
===================================================================
(Binary files differ)


Property changes on: trunk/data/textures/hook_norm.tga
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the nexuiz-commits mailing list