Posts: 245
Threads: 79
Joined: Feb 2013
(12-31-2013, 15:36)SailorMoon Wrote: (12-31-2013, 15:30)Hallla Wrote: yeah thats right i want neon green for example . I hope you know what i mean ;D
Well sorry, I was wrong buuuuut...
It's possible.
TL;DR
But "a bit" harder. Just add 'return ChatType.None' or You can move away chat from screen and make custom one via HUD elements. That shouldn't be that hard, but it will look even better. ( like glowing, effects etc ) <- That will be level hud so it won't crash your game or server. I tried to make something like that in my mw2 rotu mod.
Example:
This struct would look like
Code:
struct playerchat
{
uint time;
string words;
int colorR;
int colorG;
int colorB;
// add glow etc
}
When he types something just do:
playerchat s = new playerchat();
// and add this to hud elem ARRAY! and move
Liiikeee:
Fade out here and move down ( also scale if you needed )
|
Player: something said
|
Fade in here and move up
fashion add
CSHARP Code
txt.Color.GlowR = 148;
txt.Color.GlowB = 0;
txt.Color.GlowA = 211;
Posts: 245
Threads: 79
Joined: Feb 2013
12-31-2013, 18:57
(This post was last modified: 12-31-2013, 19:13 by [HARD] Tony..)
Quote:fashion add CSHARP Code
txt.Color.GlowR = 148;
txt.Color.GlowB = 0;
txt.Color.GlowA = 211;
Noob.
@SailorMoon
credits @zxz0O0
CSHARP Code
using Addon;
using System;
using System.Collections.Generic;
namespace ClassLibrary1
{
public class ClassLibrary1 : CPlugin
{
int Counter = -1;
public override void OnMapChange()
{
hudexample();
Counter = -1;
}
private void hudexampl()
{
HudElem txt = CreateNewHudElem();
txt.Type = HudElementTypes.Text;
txt.ShowToEnt = Entity_World;
txt.HideInMenu = true;
txt.Font = HudElementFonts.Default;
txt.FontScale = 1.2f;
txt.PointType = 82;
txt.OriginY = 210f;
txt.OriginX = 145f;
txt.Color.GlowR = 148;
txt.Color.GlowB = 0;
txt.Color.GlowA = 211;
txt.SetString("^7Visit^1 itsmods ^7for great mod");
}
public override void OnAddonFrame()
{
if (Counter >= 0)
{
Counter++;
if (Counter >= (1000 / AddonFrameInterval))
{
hudexample();
Counter = -1;
}
}
}
}
}
Posts: 245
Threads: 79
Joined: Feb 2013
(12-31-2013, 19:05)SailorMoon Wrote: Wrong code.
why?
Posts: 63
Threads: 16
Joined: Nov 2012
Reputation:
0
Hey toni,
first thy :-) and sailor if its wrong tell him why -__- ... and toni what i have to type for the color?
Posts: 245
Threads: 79
Joined: Feb 2013
(12-31-2013, 19:17)Hallla Wrote: Hey toni,
first thy :-) and sailor if its wrong tell him why -__- ... and toni what i have to type for the color?
txt.Color.GlowR = 148;
txt.Color.GlowB = 0;
txt.Color.GlowA = 211;
search RGB color table...