Extreme idea.

Juice

L4: Comfortable Member
Feb 17, 2008
176
8
So, my plans for my new map is that I have the fast food place say # served. In the number slot I either want to put the timer or a thing that will go up every time someone dies, is this possible?
 

Armadillo of Doom

Group Founder, Lover of Pie
aa
Oct 25, 2007
949
1,228
Could you be more specific? Having a physical number change like that would be difficult to the point of totally impracticle. What you could do however, is display a message to the players every 10 deaths or so. A few screen shots would help too.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
12
This is quite possible, check out the map duel_octagon_b1:

http://www.fpsbanana.com/maps/42666

Not much to look at, but does exactly what you describe. Somehow records a player death and marks the number on a scoreboard.

Oh...well apparently the map is protected from decompliling. Clearly it shows that this is possible however. My guess is that it simply has 10 boards for each number place (so 10 for the ones, 10 for the tens, 10 for the hundreds) and turns on/off the appropriate board when a death occurs.

So i.e. would start showing 0_hundred, 0_ten, 0_one to display 000.
When someone dies a math_counter for the ones place would add one and send that info on to a case_logic that would say:
- InCase01 TurnOn 1_one
- InCase01 TurnOff 0_one
Now it would show 0_hundred, 0_ten, 1_one to display 001
The InCase10 would have to reset the math_counter for the ones back to 0 (thereby display the 0_one board again) and also add 1 to a math_counter for the tens spot.
So the upon ten deaths it would show 0_hundred, 1_ten, 0_one to display 010

I tried to make that simple sounding but i might have just obfuscated the point. Hopefully that makes sense. I would call this a brute force method, not pretty or elegant, but it gets the job done.

Oh and i remeber your sketches from the TF2 forums. Was an amusing idea then, still would be interesting to see it play out. Probably would require lots of custom textures to make it interesting, but a road-side diner like that would be an interesting locale.
 
Last edited:

Armadillo of Doom

Group Founder, Lover of Pie
aa
Oct 25, 2007
949
1,228
This is quite possible, check out the map duel_octagon_b1:

http://www.fpsbanana.com/maps/42666

Not much to look at, but does exactly what you describe. Somehow records a player death and marks the number on a scoreboard.

Oh...well apparently the map is protected from decompliling. Clearly it shows that this is possible however. My guess is that it simply has 10 boards for each number place (so 10 for the ones, 10 for the tens, 10 for the hundreds) and turns on/off the appropriate board when a death occurs.

So i.e. would start showing 0_hundred, 0_ten, 0_one to display 000.
When someone dies a math_counter for the ones place would add one and send that info on to a case_logic that would say:
- InCase01 TurnOn 1_one
- InCase01 TurnOff 0_one
Now it would show 0_hundred, 0_ten, 1_one to display 001
The InCase10 would have to reset the math_counter for the ones back to 0 (thereby display the 0_one board again) and also add 1 to a math_counter for the tens spot.
So the upon ten deaths it would show 0_hundred, 1_ten, 0_one to display 010

I tried to make that simple sounding but i might have just obfuscated the point. Hopefully that makes sense. Oh and i remeber your sketches from the TF2 forums. Was an amusing idea then, still would be interesting to see it play out. Probably would require lots of custom textures to make it interesting, but a road-side diner like that would be an interesting locale.

I stand corrected. That's a pretty nifty idea lol.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
12
My question here, altho it clearly seems possible from that map i linked, is how do you record player deaths? Is there some output for that? There must be, or the guy must have jerry-rigged such a system.
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
Having numbers like that is quite possible. I displayed physical timers in-game in my map using a system very similar to what DrHaphazard describes. I had a func_brush for each digit. A logic_timer fires every second and decrements a math_counter that tells a logic_case which brushes to enable and disable. I could share a VMF or maybe even create a tutorial if you're having trouble figuring that out.

As for counting the number of player deaths, I think a solution could be to have a trigger_multiple covering the whole map. The change in numbers would be activated by the trigger's OnEndTouch. There's an example map by TheBladeRoden that reacts to player deaths of each team but for a different purpose. It uses two triggers with filter_activator_tfteam to count blue deaths and red deaths separately.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
12
Interesting news pseudo. Would a giant trigger like that slow down anything? Yeah if you had two competing food joints you could have 2 giant overlapping triggers with red/blue filters that would show the deaths for each team on the opposing teams sign.

Yeah I havent gotten Beelzebub to reply in a while, but the guy certainly knows his entity stuff. Might have gotten tired of mapping or something.