Starting to look finished;
Starting to look finished;
Having trouble editing posts atm so thats why the double post.
It's nowhere near ready to be released. Once it is I might. I have much bigger plans for this.Can you post your script? Very curious how you did this
Use my version, adapt it a bit so it spawns 3 huds instead of 1:
Is an already adapted version of a rewrite of the jm_pier_2 scriptsPHP Code:
doline(loc_say, time)
{
if(!isdefined(self.vo_hud))
{
self.vo_hud = [];
}
//any reusable line?
hud = undefined;
for(i = 0; i < self.vo_hud.size; i++)
{
if(self.vo_hud[i].removetime < gettime())
{
//reuse this one
hud = self.vo_hud[i];
break;
}
}
if(!isdefined(hud))
{
hud = newclienthudelem(self);
hud.alignx = "left";
hud.aligny = "top";
hud.horzalign = "left";
hud.vertalign = "bottom";
hud.sort = 1000;
hud.font = "default";
hud.fontscale = 1;
self.vo_hud[self.vo_hud.size] = hud;
}
hud.x = 125;
hud.y = -95;
hud.alpha = 1;
hud settext(loc_say);
for(i = 0; i < self.vo_hud.size; i++)
{
if(hud == self.vo_hud[i])
continue;
if(self.vo_hud[i].removetime < gettime())
continue;
self.vo_hud[i] moveovertime(.25);
self.vo_hud[i].y -= 10; //line-spacing
}
hud.removetime = gettime() + time * 1000 + 1000; //fadeovertime in 1 second
hud moveovertime(.25);
hud.y -= 10;
wait time;
hud fadeovertime(1);
hud.alpha = 0;
}
Ni3ls (28th January 2014)
I'v hit another roadblock.
I'm trying to completely disable the stock iprintln/obituary/killfeed so that it will not overlay the new obituary but having trouble stopping the message it prints when changing names.
I have been editing the localized string for it without much luck. If I give it a blank string, it will still display your new and old name. I can hide the old name by adding a few "/n" to the string but it will still display your new name.
I also tried hex editing the .exe file and was able to make it all disappear but other clients require the modified .exe for it to work.
Was wondering if anyone has any ideas? I'v run out of things to try and starting to think it will not be possible... is this something that libcod could fix?
Did you try to set some sort of shader over the original iprintln ? I mean a shader that would completely cover the old iPrintln and instead show your own, well it would need to be some kind fancy shader so that it doesn't distract people, but I think it would be best to just go for it and see how will it look like.
You can hook and call the original function only when not "print": void SV_SendServerCommand(/*client_t*/int *client, int bla, const char *fmt, ...)
Addresses are already in here: https://github.com/kungfooman/libcod...ter/libcod.cpp
timescale 0.01
You can just comment the obituary out in the callback_playerkilled
filthy_freak_ (31st January 2014),kung foo man (31st January 2014)