haxball / haxball-issues

114 stars 42 forks source link

[SUGGESTION] Some cool features that would be good to see in the future #2058

Open Dani-404 opened 10 months ago

Dani-404 commented 10 months ago

PlayerObject country: string → get the flag country of a player (idk how this is not available yet? We need edit headless-min.js to have this feature).

DiscPropertiesObject imageData : base64 ImageData || null → set an avatar image for a disc || remove avatar image for a disc. force: Vector → Apply a force impulse to a disc (like jumping or something like that)

RoomObject updateMaxPlayers(max: int) → update RoomObject.maxPlayers playSoundUrl(url: mp3 || null) → play an extern mp3 audio, and can be use full for sounds, playing radio or commenting matchs || stop audio setPlayerColor(player: playerObject, color: HexCode) → set color for username player in menus setPlayerPrefix(player: playerObject, prefix: string || null, bgPrefix: HexCode, colorPrefix: HexCode) → set a prefix for players in menu (ranks, MMR, etc) sample

for room sendAnnouncement, maybe possibility to add a prefix to for better messages structuration

recordClip(durationBefore: int) → idk if this is possible btw, but is an idea, extract a clip duration to hbr2 file when room is recording match addExtraKeyPress(keyCode: int) → adding key press event (for more features, cast spells, display modals etc) onKeyPressDown(player: playerObject, keyCode : int) → record key press event from a player onKeyPressUp(player: playerObject, keyCode : int) → record key press event from a player

addModal(modal: modalObject) → modal will be a new Object, which will allow you to display personalized pop-ups, with text, images, etc. (leaderboard, newsletter, etc.) with parameters like modal.title, modal.table, modal.image showModal(modalId: int, player: PlayerObject) → show modal to a player, like if is pressing tab with extra key, the modal is opening hideModal(modalId: int, player PlayerObject) → hide modal to a player screen1 screen2

Here are my suggestions, hoping they are heard, even if I don't play Haxball much anymore it would improve the community content !

Dani-404 commented 10 months ago

We should have also informations about player's extrapolation and handicap, so we can have any info if some1 is really using any cheat.

It could be forever bypassable, extrapolation and handicap are client-side parameters settings linked to fps and rendering, and the client will always be able to send what he wants to the main peer

LuciferGRE commented 10 months ago

thank you, needed suggestions

kadavrahaxball commented 10 months ago

i like these suggestions

markandre1 commented 9 months ago

SUGGESTION : UPDATE THE GOD DAMN GAME @basro YOU HAVE NO EXCUSES ANYMORE BASRO NOOB

havs1098 commented 7 months ago

SUGGESTION: ADD MOBILE VERSION THAT WILL BE VERY COOL WILL BE BE THE MOST COOL GAME ON THE WORLD