Starwars Blaster


Posted by SKREAMZ (195.147.209.*) at 1:06 PM, 8/17/2001:

Title: Starwars Blaster
Difficulty: Easy
By: SKREAMZ
Note: Please give credit where credit is due.
======================================================

NEWCODE
OLDCODE
COMMENTS
TUT

in g_weapon.c look for fire_blaster()

declare

static qboolean shot = false;

find and comment out

bolt->s.effects |= effect;

in the same func

bolt->dmg = damage;
bolt->classname = "bolt";

//new code start
if(!hyper)
{
bolt->s.renderfx |= RF_BEAM;
bolt->s.modelindex = 1;
bolt->s.frame = 3;

if(shot == true)
{
bolt->s.skinnum = 0xf2f2f0f0; //red
shot = false;
}
else if(shot == false)
{
bolt->s.skinnum = 0xf3f3f1f1; //blue
shot = true;
}
}
//new code end

if (hyper)
bolt->spawnflags = 1;
gi.linkentity (bolt);

And now you have your starwars blaster

is there a way to get these colour coded???