Module dpmod: Change committed
havoc at icculus.org
havoc at icculus.org
Tue Mar 11 14:29:09 EST 2003
Commiter : havoc
CVSROOT : /cvs/cvsroot/twilight
Module : dpmod
Commit time: 2003-03-11 19:29:09 UTC
Log message:
added a couple thorough tests of viewmodelforclient
Modified files:
qc/impulse_main.qc
------=MIME.a09d6e5688fc4ea4203f58e269c3a610
Content-Type: text/plain; name="dpmod.20030311.192909.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030311.192909.havoc.diff"
Content-Transfer-Encoding: 8bit
Index: dpmod/qc/impulse_main.qc
diff -u dpmod/qc/impulse_main.qc:1.4 dpmod/qc/impulse_main.qc:1.5
--- dpmod/qc/impulse_main.qc:1.4 Wed Feb 26 04:10:39 2003
+++ dpmod/qc/impulse_main.qc Tue Mar 11 14:28:59 2003
@@ -57,6 +57,7 @@
*/
void() ImpulseCommands =
{
+ local float n;
if (self.impulse == 250)
{
// FIXME: print weapon names by requesting WR_NAME
@@ -270,6 +271,27 @@
if (!self.deadflag)
{
+ if (self.impulse >= 30 && self.impulse <= 39)
+ {
+ n = 0;
+ while (n < 30)
+ {
+ n = n + 1;
+ newmis = spawn();
+ newmis.viewmodelforclient = self;
+ newmis.owner = self;
+ setmodel(newmis, "progs/player.mdl");
+ //setsize(newmis, '-16 -16 -24', '16 16 24');
+ newmis.movetype = MOVETYPE_NONE;
+ newmis.solid = SOLID_NOT;
+ //newmis.effects = EF_FLAME;
+ newmis.frame = 0;
+ newmis.angles = randompos('0 0 0', '360 360 360');
+ newmis.origin = randompos('-64 -64 -64', '64 64 64');
+ setorigin(newmis, newmis.origin);
+ }
+ sprint(self, "spawned 30 drones\n");
+ }
if (self.impulse == 29)
{
newmis = spawn();
@@ -328,16 +350,16 @@
setorigin(newmis, self.origin);
}
*/
- /*
if (self.impulse == 26)
{
newmis = spawn();
newmis.viewmodelforclient = newmis.owner = self;
- setmodel(newmis, "progs/g_rock2.mdl");
+ setmodel(newmis, "progs/v_dprock2.mdl");
newmis.frame = 0;
setorigin(newmis, '0 0 0');
- newmis.angles = '0 0 90';
+ newmis.angles = '0 0 0';
}
+ /*
if (self.impulse == 22)
{
makevectors(self.v_angle);
More information about the twilight-commits
mailing list