GS - Emote

GS - Emote

MIT

Godot 4.7+ addon for emotes, gestures, sprays, pings and map markers: a catalogue, a radial wheel model, server-validated equip and cooldowns. Part of the GameSpice addon family.

GameSpice Emote - GameSpice addon

Godot 4.7+ addon for emotes, gestures, sprays, pings and map markers: a catalogue, a radial wheel model, server-validated equip and cooldowns. Part of the GameSpice addon family.

Install

  1. Copy addons/dot_emote/ and addons/dot_core/ into your project.
  2. Enable the addon in Project > Project Settings > Plugins.

It needs only GameSpice Core (dot_core).

Quick start

var cfg := DotEmoteConfig.from_files().value as DotEmoteConfig
var cat := DotEmoteCatalogue.new()
cat.add({"id": "wave", "kind": "emote", "duration": 1.2})
cat.add({"id": "enemy_spotted", "kind": "ping"})

var wheel := DotEmoteWheel.from_config(cfg)          # slot 0 is up, slots run clockwise
wheel.equip(0, &"wave", cat)
var slot := wheel.slot_at(stick_offset)              # -1 inside the deadzone

var gate := DotEmoteGate.new(cfg, cat)               # server side; time is passed in
gate.set_equipped(peer_id, wheel.equipped())
var ok := gate.use(peer_id, &"wave", now)            # FORBIDDEN if not equipped, RATE_LIMITED inside the cooldown
gate.ping(peer_id, &"enemy_spotted", now)
gate.place_marker(peer_id, &"enemy_spotted", hit_point, now)   # QUOTA at markers_per_player

Settings

Every number is a field on DotEmoteConfig. The values below are defaults, and the ranges are inspector slider limits, not enforced caps. Set the property from code or a config file (cfg/addon/dot_emote/emote.yml, DOT_EMOTE_*, --emote-*) to go beyond them. A bad value fails loudly in validate().

Setting Default What it does
enabled true Master switch: off, the gate refuses every use, ping and marker.
wheel_slots 8 Slots on the radial wheel.
wheel_deadzone 0.25 Stick or mouse distance (0 to 1) under which no slot is picked.
key "G" Key that opens the wheel (the game binds it).
emote_cooldown 1.5 Seconds between two emotes by one player; 0 is no cooldown.
ping_cooldown 0.4 Seconds between two pings by one player; 0 is no cooldown.
ping_burst 4 Pings one player may send inside ping_window; 0 is unlimited.
ping_window 6.0 Seconds the ping burst is counted over.
markers_per_player 4 Map markers one player may keep at once; 0 is unlimited.
marker_ttl 30.0 Seconds a marker lives; 0 never expires.
cancel_on_move true Moving ends the emote in progress.
default_duration 2.0 Seconds an emote with no duration plays; 0 holds until cancelled.

What it is not

  • Not art, audio or animation: a catalogue entry names a clip, spray or sound, it does not play one.
  • Not a chat or voice system.
  • Not a loadout or inventory: it validates an equipped list it is given, it does not own where that list is stored.
  • Not a renderer for markers: it keeps the data (who, where, until when), the game draws them.

Test

godot --headless --path . --import
godot --headless --path . res://examples/emote_selftest.tscn

The self-test is offline and exits non-zero on any failure.

Status

Built and maintained with Claude Code. The test suites pass, but little of this has been in front of real players yet. Please report rough edges by opening an issue. The assets keep improving through Nightly.

Licence

MIT. See LICENSE. Only the TMC back-end web infrastructure is not open source.

Betrokkenheid in de tijd

Laden…
Stap

GS - Emote is een Godot-asset. Hij heeft 2 downloads, 7 weergaven en 0 favorieten. Dit item hoort bij 1 collectie en 7 tags.

Reviews

Log in om een review achter te laten.

Laden…

Reacties (0)

Log in om te reageren.

Laden…

Meer ontdekken

Bekijk wat er in de community gebeurt