Thread: Snip: Gametitle
View Single Post
Author Message
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-01-2021 , 05:51   Snip: Gametitle
Reply With Quote #1

Gametitle.
Appears when entering Half-life single-player levels. Multiplayer: visible exclusively to the first person who joins.
On Hammer this only can be set in worldspawn - Brush Entity.
Spoiler


How to make Gametitle appear to everybody using Amxx in Half-Life.
Code:
emessage_begin(MSG_BROADCAST,get_user_msgid("GameTitle"),{0,0,0},0)
ewrite_byte(1)
emessage_end()


GAMETITLE shows in titles.txt
PHP Code:
// Game title
// This is a placeholder to hold the effects controls for the "Half-Life" title
$position --1
// Only effect 0 is supported for game title
$effect 0
// This is the final color
$color 180 180 180
// Not used color2
$color2 0 0 0
// This is the time it takes to fade in the title
$fadein 1.0
// How long to hold the message on the screen (after it scans out)
$holdtime 3.0
// How long it takes to fade out the message after holding
$fadeout 1.5

GAMETITLE
{
Half-Life
}

// Game title
$position --1
$effect 0
$color 180 180 180
$color2 0 0 0
$fadein 1.0
$holdtime 3.0
$fadeout 1.5

GAMETITLE
{
Half-LifeOpposing Force

__________________

Last edited by DJEarthQuake; 12-07-2021 at 06:59. Reason: Added 'brush'.
DJEarthQuake is offline