Raised This Month: $168 Target: $400
 42% 

[ANY] Pong (Version 1.2.1 - Updated 11.10.2011)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Plugin ID:
2173
Plugin Version:
1.2.1
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    101 
    Plugin Description:
    Implements the oldschool "Pong" game
    Old 01-14-2011 , 21:27   [ANY] Pong (Version 1.2.1 - Updated 11.10.2011)
    Reply With Quote #1

    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.



    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...:


    Attached Images
    File Type: jpg ponggamepanel.jpg (28.3 KB, 553 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (pong.sp - 1874 views - 22.5 KB)
    __________________

    Last edited by Peace-Maker; 09-27-2016 at 18:16. Reason: Upload new screenshot
    Peace-Maker is offline
    Gecko
    SourceMod Donor
    Join Date: Nov 2010
    Location: Vancouver, Canada
    Old 01-15-2011 , 02:40   Re: [ANY] Pong 1.0
    Reply With Quote #2

    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?
    Gecko is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: Soviet Union
    Old 01-15-2011 , 03:59   Re: [ANY] Pong 1.0
    Reply With Quote #3

    "no, I'm connected to this server to play ponk, not that f---ing counter-strike"
    __________________
    Leonardo is offline
    javalia
    Senior Member
    Join Date: May 2009
    Location: korea, republic of
    Old 01-15-2011 , 09:10   Re: [ANY] Pong 1.0
    Reply With Quote #4

    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
    __________________
    javalia is offline
    psychonic

    BAFFLED
    Join Date: May 2008
    Old 01-15-2011 , 11:01   Re: [ANY] Pong 1.0
    Reply With Quote #5

    Quote:
    Originally Posted by Peace-Maker View Post
    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.
    psychonic is offline
    snipercup
    Junior Member
    Join Date: Nov 2010
    Old 01-15-2011 , 13:39   Re: [ANY] Pong 1.0
    Reply With Quote #6

    Works perfectly for me.

    It's amazing.

    I recommend putting the speed up by default, I will recompile it for myself.
    snipercup is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-16-2011 , 05:12   Re: [ANY] Pong 1.0
    Reply With Quote #7

    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).
    __________________
    Silvers is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 01-16-2011 , 13:17   Re: [ANY] Pong 1.0
    Reply With Quote #8

    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 is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 01-16-2011 , 13:18   Re: [ANY] Pong 1.0
    Reply With Quote #9

    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?
    Groger is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 01-16-2011 , 18:41   Re: [ANY] Pong 1.1 Updated 17/01/2011
    Reply With Quote #10

    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 View Post
    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 View Post
    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.
    __________________
    Peace-Maker is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


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


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode