AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Pong (Version 1.2.1 - Updated 11.10.2011) (https://forums.alliedmods.net/showthread.php?t=147845)

Peace-Maker 01-14-2011 21:27

[ANY] Pong (Version 1.2.1 - Updated 11.10.2011)
 
2 Attachment(s)
Finally it's there:
Pong for Source

While reading this thread a while ago i wanted to test, if i could get such an ASCII game working ingame. After finishing it, i never thought of releasing, but now while i'm playing against the computer (who never does any mistakes) and having so much fun with this thrilling game, i'd like to give everyone the chance to have a round.

It features 2 public commands:
  • sm_pong - Opens a menu with options to invite another player or play against the computer
  • sm_pquit - Surrender players current Pong game

And two ConVars:
  • sm_pong_version - ...
  • sm_pong_onlydead - Allow only dead or spectating players to play pong. (Default: 1)

Notice that ball movement speed varies somehow on different servers. If it's too slow for you, change the PONG_BALL_FRAMERATE define and recompile.

https://forums.alliedmods.net/attach...1&d=1475013762

Quote:

Changelog:
1.0: Initial release
1.1: Added sm_pong_onlydead convar, increased framerate by default
1.2: Added 3 seconds countdown before starting a game
1.2.1: Now uses correct utf8 chars with same width. Fixed speed increasing over time. Fixed right paddle didn't hit correctly.
Did you see...:



Gecko 01-15-2011 02:40

Re: [ANY] Pong 1.0
 
Haha that's awesome. Could you give a bit more info though? Is it a GUI or what? And can it only be played on certain types of games?

Leonardo 01-15-2011 03:59

Re: [ANY] Pong 1.0
 
"no, I'm connected to this server to play ponk, not that f---ing counter-strike"

javalia 01-15-2011 09:10

Re: [ANY] Pong 1.0
 
recommend to use full width character
like "O" and "o" " "it takes full 1 character`s space, not like half width character that we normaly use

psychonic 01-15-2011 11:01

Re: [ANY] Pong 1.0
 
Quote:

Originally Posted by Peace-Maker (Post 1393804)
If anyone knows of some utf8 chars with the same width as an "o" and one with the same width as an "I", i'd greatly replace them to fix that visual glitch on the right side.

It would vary by the font being used for the menu which varies per game.

snipercup 01-15-2011 13:39

Re: [ANY] Pong 1.0
 
Works perfectly for me.

It's amazing.

I recommend putting the speed up by default, I will recompile it for myself.

Silvers 01-16-2011 05:12

Re: [ANY] Pong 1.0
 
No errors but it crashes our linux L4D2 server when the plugin is loaded (sm plugins refresh) or when we connect with it loaded. Local windows SRCDS works fine. MM1.8/SM1.4 (on both).

Groger 01-16-2011 13:17

Re: [ANY] Pong 1.0
 
I'm worried on how heavy this plugin will be whene everyone is playing it?

Also, is it possible you add a cvar, so this will only be available with people that are dead?

Groger 01-16-2011 13:18

Re: [ANY] Pong 1.0
 
I'm worried on how heavy this plugin will be when everyone is playing it?

Also, is it possible you add a cvar, so this will only be available with people that are dead?

Peace-Maker 01-16-2011 18:41

Re: [ANY] Pong 1.1 Updated 17/01/2011
 
Updated to 1.1.
Added sm_pong_onlydead convar to only allow dead and spectating players to play pong.

I've also fastened the ball movement a bit. Still it appears to get insanely fast sometimes, so play with the PONG_BALL_FRAMERATE.

Quote:

Originally Posted by Silvers (Post 1394655)
No errors but it crashes our linux L4D2 server when the plugin is loaded (sm plugins refresh) or when we connect with it loaded. Local windows SRCDS works fine. MM1.8/SM1.4 (on both).

This plugin doesn't do anything heavy on plugin load or unload or on player connect. Check your other plugins for problems.

Quote:

Originally Posted by javalia (Post 1394066)
recommend to use full width character
like "O" and "o" " "it takes full 1 character`s space, not like half width character that we normaly use

I didn't see any difference. I've tested with CS:S, which uses Verdana as menu font.


All times are GMT -4. The time now is 10:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.