Addoutput Syntax Question

Discussion in 'Mapping Questions & Discussion' started by SV_CHEATS 1, May 19, 2012.

  1. SV_CHEATS 1

    SV_CHEATS 1 L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    How do you form an addoutput
     
    Last edited: May 19, 2012
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    I believe the OnIgnite output is your problem. It is the counterpart to the Ignite input, which is not pyro fire in TF2, is it base Source/HL2 fire. If you send an Ignite to yourself ingame you will see it is different and broken.

    If OnIgnite does actually work with TF2 fire and that isn't the issue, I have a couple more ideas:

    What commands? Some commands cannot be executed via a p_cc to prevent malicious activity.

    You are firing from a case, have you verified that the AddOutput is properly being sent to the player entity? Certain entities do not handle !activator properly and there may be an issue in your logic chain.
     
  3. SV_CHEATS 1

    SV_CHEATS 1 L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    They aren't malicious commands. I'm using the "ignite" input. Do outputs like "OnX" work with addoutputs? If so, is the was I scripted it correct with the Onignite point_clientcommand,command,<cmd>
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Sorry, I just realized you did have the syntax wrong. The separator for AddOutput is a colon not a comma. I overlooked it on first glance because the VMF format uses commas to delimit an output. It should work if you do that instead. (I just tested OnIgnite with addoutput ingame)
     
  5. SV_CHEATS 1

    SV_CHEATS 1 L1: Registered

    Messages:
    16
    Positive Ratings:
    0
    like
    addoutput,onignite:eek:int_clientcommand,command
    ?or what?
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    ...I could have just formatted the output you had originally posted, but you blanked your post. I find it really aggravating when people do that. It was closer to correct than what you posted now.

    Input:
    AddOutput

    Parameter:
    OnIgnite p_cc:command:commandstring