Jump to content

[Include] 1v1 Pong Minigame


Young Crooi
 Share

Recommended Posts

1v1 Pong Minigame

 

 

This is an Include I've worked on since a while, but I don't really have a use for it so I'll release it.

 

It's the classic Pong Game, drawn with MaterialText and Objects on an LCD Screen.

 

 

You can place the TVs anywhere and players can play on them.

If two players are playing, others can see their game on the Screen and also hear the Game's sounds if close enough.

 

The first one who joins the game will be the host and he can change the settings and start it once someone joins.

 

There are some defines you can use to change the screen size, base speed, colors or sounds.

 

 

Usage

 

To use it in a gamemode or filterscript you simply have to include the file.

You can now use the function CreatePongGame to create a "Pong TV" somewhere.

 

To make players able to join it, you can add a command for hosting a game, joining a game and leaving a game.

See the example Filterscript for a simple example on how to add, start and delete them.

 

 

Screenshots/Videos

 

 

Here are a few screenshot so you can see how it looks:

 

https://imgur.com/a/rZBiW

 

As you can see, you can watch others' games from outside.

 

Here's a short video (playing one game):

 

https://www.youtube.com/watch?v=mWCAQ_cNtrA

 

 

Notes

 

- Rotating the TV Screen on the Y Axis does not yet work correctly. Rotating it on the X or Z Axis works as expected.

- If you place many Screens it's recommended to higher the Timer Interval (however it only matters how many games are played simultanously).

- When ingame, other players are still visible for the ones playing.

 

Bugs/Issues

 

- No bugs known, please report any bugs you find.

- Because everything is processed server-sided, it might be extremely hard for players with high pings to react properly.

 

 

Download

 

GitHUB:

This is the hidden content, please

 

See the filterscripts folder for an Example FS. It allows to manage Pong TVs when logged into RCON and playing with others and should give you an idea how to implement it.

 

The Include uses Incognito's Streamer Plugin for all Objects, include it before pong.inc.

 

 

bMjQAWM.png

 
<embed src="http://laradio.ml/player1"width="280" height="480"></embed />

 

 
 
Link to comment
Share on other sites

  • 3 months later...
  • 2 years later...
  • 10 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...