Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ¥ola

Pages: 1 ... 90 91 92 93 94 [95] 96 97 98 99 100
1411
Modification Help / Re: Event Help
« on: June 15, 2012, 12:41:20 PM »
click that
Well stuff.  It still doesn't work.

Code: [Select]
registerOutputEvent(fxDTSBrick, checkMask);
registerInputEvent(fxDTSBrick, "onMaskTrue", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");
registerInputEvent(fxDTSBrick, "onMaskFalse", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");

function fxDTSBrick::onMaskTrue(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskTrue", %client);
}

function fxDTSBrick::onMaskFalse(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskFalse", %client);
}

function fxDTSBrick::checkMask(%obj,%client)
{
if(%obj.client.Gasmask == 0)
{
%this.onMaskFalse(%client);
}
else
{
%this.onMaskTrue(%client);
}
}

1412
Modification Help / Re: Event Help
« on: June 15, 2012, 12:35:21 PM »
I knew it.
I loving kneeeeewww ittttt

I was hoping something else, because you said "you shouldn't rip code" in your topic, but forget.
Yeah.
And know I have learned my lesson.

forget.

1413
Modification Help / Re: Event Help
« on: June 15, 2012, 12:31:00 PM »
If they don't have a gasmask:
    If the brick is a player and the brick is not dead:
        If the brick is not a player:
            Run "onMaskFalse"
        Otherwise:
            Run "onMaskTrue"

What the hell are you doing?

I knew %obj was wrong.

I took that almost exactly out of the ChemGrenade script.  
How the hell doesn't it work?

1414
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 12:28:42 PM »
post it.

Code: [Select]
registerOutputEvent(fxDTSBrick, checkMask);
registerInputEvent(fxDTSBrick, "onMaskTrue", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");
registerInputEvent(fxDTSBrick, "onMaskFalse", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");

function fxDTSBrick::onMaskTrue(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskTrue", %client);
}

function fxDTSBrick::onMaskFalse(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskFalse", %client);
}

function fxDTSBrick::checkMask(%obj,%client)
{
if(%obj.client.Gasmask == 0)
{
if(%obj.getType() & $TypeMasks::PlayerObjectType && %obj.getState() !$= "Dead")
{
%db = %obj.getDatablock();

if(!%obj.isPlayer)
{
%this.onMaskFalse(%client);
}

else

{
%this.onMaskTrue(%client);
}
}
}
}

1415
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 12:26:33 PM »
That code you posted on the last page is painful to look at...


you mis-defined a few variables, you have spare variables defined, and you were misusing functions...

glad you rewrote it
Lol thanks mate.
It was pretty bad.

But now I have it all working, but the checkMask isn't doing anything.

1416
Modification Help / Re: Event Help
« on: June 15, 2012, 12:25:16 PM »
Okay well.

This is starting to piss me off.

The events all show up but don't do anything when you use them.

Code: [Select]
registerOutputEvent(fxDTSBrick, checkMask);
registerInputEvent(fxDTSBrick, "onMaskTrue", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");
registerInputEvent(fxDTSBrick, "onMaskFalse", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");

function fxDTSBrick::onMaskTrue(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskTrue", %client);
}

function fxDTSBrick::onMaskFalse(%this, %obj, %client)
{
$InputTarget_["Self"] = %obj;
$InputTarget_["Player"] = %client.player;
$InputTarget_["Client"] = %client;

if($Server::LAN)
   {
      $InputTarget_["MiniGame"] = getMiniGameFromObject(%client);
   }
   else
   {
      if(getMiniGameFromObject(%obj) == getMiniGameFromObject(%client))
         $InputTarget_["MiniGame"] = getMiniGameFromObject(%obj);
      else
         $InputTarget_["MiniGame"] = 0;
   }
%this.processInputEvent("onMaskFalse", %client);
}

function fxDTSBrick::checkMask(%obj,%client)
{
if(%obj.client.Gasmask == 0)
{
if(%obj.getType() & $TypeMasks::PlayerObjectType && %obj.getState() !$= "Dead")
{
%db = %obj.getDatablock();

if(!%obj.isPlayer)
{
%this.onMaskFalse(%client);
}

else

{
%this.onMaskTrue(%client);
}
}
}
}

1417
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 11:53:44 AM »
Oh golly, now I'm getting all excited~
Ignore the snippet of code from earlier.

I re-wrote the entire thing, showed up and everything.

But the output doesn't register anything yet.

Almost done mate, hang in there

1418
Modification Help / Re: Event Help
« on: June 15, 2012, 11:39:50 AM »
Nevermind.

If I'm using the Gasmask's variables, do I need to make it a forced addon?

1419
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 11:23:36 AM »
We tried something like my example, before moving to VCE- which showed the problem of it only effecting a single player at once.

Also, that seems pretty good...

Thank you so much!

Hopefully the showing up thingo gets fixed ><

I do believe I found a solution,
That is the reason we don't rip code kids!

1420
Modification Help / Event Help
« on: June 15, 2012, 11:22:25 AM »
I'm pretty sure I did this somewhat correctly, more than likely not though.

Anyone see any major issues as to why the events don't show up in the event list, because it shows up on the addon list

Code: [Select]
registerOutputEvent(fxDtsBrick, "checkMask", "", 1);
registerInputEvent(fxDtsBrick, "onMaskTrue", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");
registerInputEvent(fxDtsBrick, "onMaskFalse", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");


function fxDTSBrick::onMaskTrue(%this, %obj, %client)
{
$inputTarget_self = %this;
$inputTarget_client = %client;
$inputTarget_player = %client.player;
$inputTarget_miniGame = getMiniGameFromObject(%this);
%this.processInputEvent("VariableTrue", %client);
}

function fxDTSBrick::onMaskFalse(%this, %obj, %client)
{
$inputTarget_self = %this;
$inputTarget_client = %client;
$inputTarget_player = %client.player;
$inputTarget_miniGame = getMiniGameFromObject(%this);
%this.processInputEvent("VariableFalse", %client);
}

function fxDTSBrick::checkMask(%this, %obj, %client)
{
if(%obj.client.Gasmask == 0)
{
if(%obj.getType() & $TypeMasks::PlayerObjectType && %obj.getState() !$= "Dead")
{
%db = %obj.getDatablock();

if(!%obj.isPlayer)
{
%this.onMaskFalse(%client);
else
%this.onMaskTrue(%client);
}
}
}
}

1421
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 11:10:16 AM »
Anyone see a major problem with this?

I'm pretty sure I set it up correctly, but the events are not showing the the menu

Code: [Select]
registerOutputEvent(fxDtsBrick, "checkMask", "", 1);
registerInputEvent(fxDtsBrick, "onMaskTrue", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");
registerInputEvent(fxDtsBrick, "onMaskFalse", "Self fxDtsBrick\tPlayer Player\tClient GameConnection\tMinigame Minigame");


function fxDTSBrick::onMaskTrue(%this, %obj, %client)
{
$inputTarget_self = %this;
$inputTarget_client = %client;
$inputTarget_player = %client.player;
$inputTarget_miniGame = getMiniGameFromObject(%this);
%this.processInputEvent("VariableTrue", %client);
}

function fxDTSBrick::onMaskFalse(%this, %obj, %client)
{
$inputTarget_self = %this;
$inputTarget_client = %client;
$inputTarget_player = %client.player;
$inputTarget_miniGame = getMiniGameFromObject(%this);
%this.processInputEvent("VariableFalse", %client);
}

function fxDTSBrick::checkMask(%this, %obj, %client)
{
if(%obj.client.Gasmask == 0)
{
if(%obj.getType() & $TypeMasks::PlayerObjectType && %obj.getState() !$= "Dead")
{
%db = %obj.getDatablock();

if(!%obj.isPlayer)
{
%this.onMaskFalse(%client);
else
%this.onMaskTrue(%client);
}
}
}
}

1422
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 10:36:13 AM »
My problem so far is that in your 'example' your using two inputs.

OnActivate -> IfGasMaskOn -> Self | this is impossible

What about something like

OnEnterZone -> Player -> CheckGasMask
OnGasMaskTrue ->Player -> blablabla

1423
Suggestions & Requests / Re: Event Request: IfGasMask
« on: June 15, 2012, 10:17:18 AM »
That's what I'm thinking- except we need someone who can comprehend zonebricks first.

I mean, I don't know much Torquescript, but I'll try.

1424
Help / Re: how do i make a push release button?
« on: June 14, 2012, 09:21:18 PM »
No, you'd probably need an entirely new event for holding the mouse button. The default one just checks for each and every separate click.
You can however set it to the jet button, typically your right mouse button, using VCE.

Would that work for you?

1425
Yeah they're doing a big promo on it, I got it too.  I might actually buy it

Pages: 1 ... 90 91 92 93 94 [95] 96 97 98 99 100