Melee fix only 50% working.

Discussion in 'Mapping Questions & Discussion' started by AntonJ3000, Feb 4, 2009.

  1. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    Hey everyone, I've been trying to make a melee map without using that exploitable sv_cheats option.

    I have a trigger_multiple that's stretched onto the whole map.

    Settings:
    [​IMG]

    Compiling and doing it myself works fine, Except when someone joins/bot, it ignores it.

    So I tried it on a dedicated server and I thought it worked fine, well...
    It did work for everyone this time but sometimes it like failed to change to the melee slot, So people could play with the normal weapons and then after like 2 seconds it switches to melee except for heavy's minigun which didn't swap when it was spinning.

    So, anyone know what the problem is?
     
    • Thanks Thanks x 1
    Last edited: Feb 4, 2009
  2. Zeewier

    Zeewier L9: Fashionable Member

    Messages:
    619
    Positive Ratings:
    130
    try -attack (stops attacking) and probably the heavy spin.
     
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Won't help, the gun has to completely spin down before you are allowed to change weapon. Might make it more difficult, but you could still get through it.
     
  4. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    Or we could just bug the shit out of Valve to fix the kill input crash already.
     
  5. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    Well, that would take like 6months or something :)

    So, does anyone know what's wrong with my I/O code?
     
  6. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    From the VDC:
    This means that instead of counting it as 0.05 seconds, it counts as 5 seconds. A integer only allows full numbers so the delay either has to be 0 or 1 if it has to be fast
     
  7. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    What do you mean with that it counts as 5 seconds?

    It seems to do it every 0.05 seconds and not every 5 seconds.
     
  8. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    Then it maybe already does it each second by rounding it up and not just removing that dot. If it realy does it each 0.05 seconds then it would be called a float normaly on the VDC and then the info there would be wrong.

    Try to switch you weapon very quick after it forced the melee weapon. and then check if it takes 1 sec (from the moment it switched last time) to go back to the melee weapon again.

    It seems the most logical way to me that it does trigger it each second.

    If its the case of swapping each second then you can increase the speed by giving the output 20 times the same action and have the delay increase with 0.05 there each time.
     
  9. AntonJ3000

    AntonJ3000 I am inactive and make horrible maps

    Messages:
    401
    Positive Ratings:
    89
    I already tried swapping the weapon at testing the map, and it does work, except on servers.
     
  10. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    You mean the part that they instantly swap weapons? And instead they do it after about 1 seconds. As that is fixed by the multiple outputs all delayed. You cannot get a trigger multiple to be working faster then restarting each second (and when its triggered once other players will still have to wait the remaining of that second).

    Just try it and say if it worked. It cannot harm to try it and if it does work then you know the couse also. If it doesnt work at all then we at least know it also.