Math_Counter's OnHitMax never fires
Quote from Omnicoder on June 19, 2009, 2:14 amOk I have a weird problem. I have a room with 2 cubes, 3 buttons, 2 doors, 2 math counters and a rocket turret.activating 2 buttons enables turret and opens a door. The math counter counting to 2 now fires the onhitmax event, opening the door and activating the rocket turret. (that part works). The problem is that once all 3 buttons are pressed, the math counter counting to 3 never fires its onhitmax event, but the door requring 3 still opens. I checked the doors inputs and the onhitmax (that never seems to fire) is the only one opening it. The onhitmax event is supposed to open door, activate a point_viewcontrol and hide crosshair/gun but all that ever happens is door opens... Also, I tried adding a 5 second delay to the math_counters output to open the door and it still opens instantly. It's like it just happens to randomly open when all 3 are pressed, but my math counter doesn't seem to be doing it. I'm confused. The door only has one open input, which is from the math counter. Can someone help me please?
Nevermind, apparently my map file got corrupted. I tried reloading it into hammer and it crashed it, the problem was it wasn't complining a BSP (since the vmx was 'bad') I had all noportal_volumes hidden so decompiling wasn't an option. Luckily I manually edited the vmf file and fixed it. Cheers!
Ok I have a weird problem. I have a room with 2 cubes, 3 buttons, 2 doors, 2 math counters and a rocket turret.activating 2 buttons enables turret and opens a door. The math counter counting to 2 now fires the onhitmax event, opening the door and activating the rocket turret. (that part works). The problem is that once all 3 buttons are pressed, the math counter counting to 3 never fires its onhitmax event, but the door requring 3 still opens. I checked the doors inputs and the onhitmax (that never seems to fire) is the only one opening it. The onhitmax event is supposed to open door, activate a point_viewcontrol and hide crosshair/gun but all that ever happens is door opens... Also, I tried adding a 5 second delay to the math_counters output to open the door and it still opens instantly. It's like it just happens to randomly open when all 3 are pressed, but my math counter doesn't seem to be doing it. I'm confused. The door only has one open input, which is from the math counter. Can someone help me please?
Nevermind, apparently my map file got corrupted. I tried reloading it into hammer and it crashed it, the problem was it wasn't complining a BSP (since the vmx was 'bad') I had all noportal_volumes hidden so decompiling wasn't an option. Luckily I manually edited the vmf file and fixed it. Cheers!
Quote from Remmiz on June 19, 2009, 1:24 pmVMX is the auto generated backup of your VMF (the source file). You should be opening and editing your VMF.
VMX is the auto generated backup of your VMF (the source file). You should be opening and editing your VMF.
Quote from Omnicoder on June 19, 2009, 1:55 pmThats what I meant. I removed a point_viewcontrol from the vmf in notepad and it fixed it for some reason...
Thats what I meant. I removed a point_viewcontrol from the vmf in notepad and it fixed it for some reason...