Author Topic: [Weapon] POWERDRILL | DRILL & KILL [onDrill]  (Read 10348 times)

quit drilling your new age propaganda into my head


how about I release my foot into your ass


perfect for my naked gay drill special interest love rp deathmatch server.


THIS DRILL
IS THE DRILL
THAT WILL PIERCE THE HEAVENS.

Can you make a custom event for checking if a brick is drilled, or will those projectile checking events work with this way of checking for the drill?

did u put more effort into the graphics than the drill?

lol kidding, I quite like it.


he should've asked me

Code: [Select]
registerInputEvent(fxDTSBrick, "onDrill", "Self fxDTSBrick Player Player Client GameConnection MiniGame MiniGame");
function drillProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
Parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);

// check to see if the thing we just hit is a brick
if(%col.getType() & ($TypeMasks::FxBrickObjectType | $TypeMasks::FxBrickAlwaysObjectType))
{
// set the event parameters up
$InputTarget_["Self"]   = %col;
$InputTarget_["Player"] = %obj.sourceObject;
$InputTarget_["Client"] = %obj.sourceObject.client;

if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.sourceObject.client);
}
else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.sourceObject.client))
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
else
$InputTarget_["MiniGame"] = 0;
}
//process the event
%col.processInputEvent("onDrill", %obj.sourceObject.client);
}
}

put that at the bottom of Weapon_Power_Drill.cs and magically you will have input events named 'onDrill'


he should've asked me

Code: [Select]
registerInputEvent(fxDTSBrick, "onDrill", "Self fxDTSBrick Player Player Client GameConnection MiniGame MiniGame");
function drillProjectile::onCollision(%this, %obj, %col, %fade, %pos, %normal)
{
Parent::onCollision(%this, %obj, %col, %fade, %pos, %normal);

// check to see if the thing we just hit is a brick
if(%col.getType() & ($TypeMasks::FxBrickObjectType | $TypeMasks::FxBrickAlwaysObjectType))
{
// set the event parameters up
$InputTarget_["Self"]   = %col;
$InputTarget_["Player"] = %obj.sourceObject;
$InputTarget_["Client"] = %obj.sourceObject.client;

if($Server::LAN)
{
$InputTarget_["MiniGame"] = getMiniGameFromObject(%obj.sourceObject.client);
}
else
{
if(getMiniGameFromObject(%col) == getMiniGameFromObject(%obj.sourceObject.client))
$InputTarget_["MiniGame"] = getMiniGameFromObject(%col);
else
$InputTarget_["MiniGame"] = 0;
}
//process the event
%col.processInputEvent("onDrill", %obj.sourceObject.client);
}
}

put that at the bottom of Weapon_Power_Drill.cs and magically you will have input events named 'onDrill'
oh cool

would you mind if I added this into it as a separate add-on?

you banned me for using this at new years lol
who dropped it into the ring anyways

you can do whatever you want with it just make sure that drillProjectile is created first before my script is executed

you banned me for using this at new years lol
who dropped it into the ring anyways
either some idiot who glitched on stage or someone on our idiot staff