Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → I am back! And i want yet ANOTHER extreamly simple cog!
I am back! And i want yet ANOTHER extreamly simple cog!
2001-04-30, 12:38 PM #1
Ok, This should be easy!

A cog that when you pass an adjoin,shows customisable text at the top of the screen with the players name in it, like the one in spork arena...

Example: I cross adjoin and printed at top of the screen:

SuperNerd_IJ The Mighty!
The Situation:
The Sv_SetBrushModel: Null error has occurred in my map. This means that somewhere in my level, there is a paper-thin prush that needs to be deleted. There are 2888 brushes in my level. That's chances of 1/2888 of finding the correct brush. The statistics say I have a .035% chance of finding it.
Did I find it?
You bet I did.
2001-04-30, 1:29 PM #2
See if this works
Code:
# Jedi Knight Cog Script
#
# textdisplay.COG
#
# name
#
# description
# Displays players name and text when adjoin is crossed.
#
#
# Created by Boba Rhett
#
# [YB & CYW]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved

symbols

message startup
message crossed

thing player        local

surface  textsurf

end

#============================================================

code

startup: 

     player = GetLocalPlayerThing();

Return;

# ........................................................................................

crossed:

  jkStringClear();
                jkStringConcatPlayerName(thingPlayer); 
                jkStringConcatSpace();
                jkStringConcatAsciiString("The Almighty!!");             
		jkStringOutput(player, -3);

Return;

# ......................................................................................
end

Gravity isn't MY fault--I voted for velcro.

↑ Up to the top!