Raised This Month: $12 Target: $400
 3% 

Snip: Gametitle


Post New Thread Reply   
 
Thread Tools Display Modes
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-01-2021 , 07:59   Re: Snip: Gametitle
Reply With Quote #2

I liked the part where you actually told everyone what "GameTitle" is supposed to do and what the code snippet does.
__________________
HamletEagle is offline
Old 10-01-2021, 18:45
DJEarthQuake
This message has been deleted by DJEarthQuake. Reason: Nevermind
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-02-2021 , 11:14   Re: Snip: Gametitle
Reply With Quote #3

I dont get it
__________________
Bugsy is offline
thEsp
BANNED
Join Date: Aug 2017
Old 10-02-2021 , 17:43   Re: Snip: Gametitle
Reply With Quote #4

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.
thEsp is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-02-2021 , 18:42   Re: Snip: Gametitle
Reply With Quote #5

Quote:
Originally Posted by thEsp View Post
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.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:31.


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