Author Topic: Projectiles Disembodying players heads?  (Read 987 times)

Can someone help me with this? I need to know how to disembody someones head with this new sniper rifle I am making and I am not exactly the smartest person with torque script.  :panda:

There's something about decapitation in the eyelander weapon. If you just edited some files from that, you could probably make it happen.

Just hide the player's head node.



Run along now
Please don't attempt to help with coding if you don't really have a clue about it

Code: [Select]
function hitBoxTest(%obj, %col, %test)
{
$hitbox = true;
$hitboxList = "";

paintProjectile::onCollision("", %obj, %col, "", %pos, "");
cancel(%col.tempColorSchedule);
$hitbox="";

%hbl = $hitboxList;
$hitboxList = "";

return %hbl;
}

Code: [Select]
function hitBoxTest(%obj, %col, %test)
{
$hitbox = true;
$hitboxList = "";

paintProjectile::onCollision("", %obj, %col, "", %pos, "");
cancel(%col.tempColorSchedule);
$hitbox="";

%hbl = $hitboxList;
$hitboxList = "";

return %hbl;
}
good job leaving out the package that actually makes it function

You also need to package over Player::setNodeColor(%this,%node,%col) to add %node to $hitboxList and return if $hitbox is true

good job leaving out the package that actually makes it function

You also need to package over Player::setNodeColor(%this,%node,%col) to add %node to $hitboxList and return if $hitbox is true

nevermind