AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   Snip: Gametitle (https://forums.alliedmods.net/showthread.php?t=334519)

DJEarthQuake 10-01-2021 05:51

Snip: Gametitle
 
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

https://cdn.discordapp.com/attachmen...etitle_eye.jpg
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


https://cdn.discordapp.com/attachmen...alace20000.jpg

HamletEagle 10-01-2021 07:59

Re: Snip: Gametitle
 
I liked the part where you actually told everyone what "GameTitle" is supposed to do and what the code snippet does.

Bugsy 10-02-2021 11:14

Re: Snip: Gametitle
 
I dont get it

thEsp 10-02-2021 17:43

Re: Snip: Gametitle
 
DJ your posts are so weird my man. I don't know if you speak a heavy dialect or it's just your Shakespearean style of writing but I can certainly not understand your posts on the first reading. You use references instead of explaining and vice versa.

Napoleon_be 10-02-2021 18:42

Re: Snip: Gametitle
 
Quote:

Originally Posted by thEsp (Post 2759439)
DJ your posts are so weird my man. I don't know if you speak a heavy dialect or it's just your Shakespearean style of writing but I can certainly not understand your posts on the first reading. You use references instead of explaining and vice versa.

100% agreed on this one.


All times are GMT -4. The time now is 00:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.