What's new

Discussion [Modified] Terminator by coolbunnymodz

  • Thread starter ActionScript
  • Start date
  • Views 468
ActionScript

XG R4PiDzZ

XG R4PiDzZ
Grizzled Veteran Programmer Modder
Messages
2,649
Reaction score
1,405
Bored and seen someone else tried to fix/modify, so I thought I would. Not tested it, should work though.

Code:
doTerminator()
{
self endon("death");
self endon("disconnect");
self endon("terminatorOver");
self freezeControls(true);
self iPrintLnBold("Transforming");
self attach("zombie_skull","J_Eyeball_LE", true);
self attach("weapon_usa_tesla", "J_Shoulder_LE", true);
self attach("weapon_usa_tesla", "J_Shoulder_RI", true);
self attach("viewmodel_knife_bowie", "J_Elbow_RI",true);
self attach("viewmodel_knife_bowie", "J_Elbow_LE", true);
self setClientDvar("cg_thirdPerson", "1");
self setClientDvar("cg_thirdPersonRange", "230");
self freezeControls(false);
self iPrintLnBold("Transformation Complete");
self thread doLaughingChild();
for(;;)
{
if(self attackButtonPressed())
{
SWGun = self getTagOrigin("J_Shoulder_LE");
SWGun2 = self getTagOrigin("J_Shoulder_RI");
x = randomIntRange(-50, 50);
y = randomIntRange(-50, 50);
z = randomIntRange(-50, 50);
MagicBullet("panzerschrek", SWGun, GetCursorPos()+(x, y, z), self);
MagicBullet("panzerschrek", SWGun2, GetCursorPos()+(x, y, z), self);
}
playFx(level._effect["headshot"], self getTagOrigin("j_head"));
playFx(level._effect["headshot"], self getTagOrigin("J_neck"));
playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["headshot"], self getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_LE"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_Shoulder_RI"));
playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_RI"));
playFx(level._effect["headshot"], self getTagOrigin("J_Ankle_LE"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_RI"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_Ankle_LE"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_RI"));
playFx(level._effect["bloodspurt"], self getTagOrigin("J_wrist_LE"));
playFx(level._effect["headshot"], self getTagOrigin("J_SpineLower"));
playFx(level._effect["headshot"], self getTagOrigin("J_SpineUpper"));
wait 0.5;
}
}


doLaughingChild()
{
self endon("death");
self endon("disconnect");
for(i = 0; i < 20; i++)
{
self playLocalSound("laugh_child");
wait 10;
}
self notify("terminatorOver");
}

GetCursorPos()
{
forward = self getTagOrigin("tag_eye");
end = self thread vector_scal(anglesToForward(self getPlayerAngles()), 1000000);
return location;
}

vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
 
B

-Blackstorm

Enthusiast
Messages
214
Reaction score
61
I spy an uninitialized variable. (;
 
coolbunnymodz

coolbunnymodz

The Original Bunny
Programmer 10th Anniversary Fabled Veteran
Messages
4,383
Reaction score
1,307
I like it, only lasts for 10 seconds though?
 
Dwack

Dwack

Now employed at Dominoes!
Experienced Veteran Hardened Veteran
Messages
4,550
Reaction score
2,947
You have no closing quote in:

Code:
self endon( "disconnect);
 
TOXiiC x PLAGUE

TOXiiC x PLAGUE

Enthusiast
Messages
1,293
Reaction score
274
lol nice, i was gona do something like this with ghostrider but you cant use the flamethrower as a magicbullet and i was too lazy back then to attach fire fx to script origins and all that bull so never bothered :tongue:
 
Top Bottom