Raised This Month: $32 Target: $400
 8% 

Wall Text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Emp` (115)
stupok
Veteran Member
Join Date: Feb 2006
Old 04-03-2009 , 22:42   Wall Text
Reply With Quote #1

Wall Text
v1.09

Description
This plugin converts chat messages to decals and paints them on the wall. You are limited to capital A-Z and 0-9.

Messages are repainted on client connect and new round.
Usage
Commands:

amx_walltext "I am using walltext yay"
If you don't want to use the menu, you can use this.

amx_walltextmenu or say walltextmenu
This brings up a menu to control the plugin.

Note: Deleted or unsaved decals will disappear on new round.
Special Features:

You can do multiline messages:
Put a comma ( , ) to move down to the next line.

You can display dynamic text:
Edit the walltext-mapname.ini file. Instead of your regular message, type the full path of a text file you want the plugin to read. It will only read the first line and use that as your message.

Note: The path to your file starts in the 'cstrike' directory. To display the first line of your motd.txt, use motd.txt as your message.
Files
The plugin will save messages to:
amxmodx\configs\maps\walltext-mapname.ini

This is the format:
( Origin XYZ, Direction XYZ, Text )
Code:
-2313.605468;-1173.158447;0.031257;0.000000;12.000000;0.000000;YOUR MESSAGE HERE
This one will print the first line of your motd.txt:
Code:
-2313.605468;-1173.158447;0.031257;0.000000;12.000000;0.000000;motd.txt
Changelog

04/03/09 - v1.0
Initial release.

04/04/09 - v1.01
Mod-independent!

04/04/09 - v1.02
Removed decal_reset.sc event. DoD doesn't have it. O_o

04/04/09 - v1.03
New menu, say command, trivial changes.

04/07/09 - v1.04
Changed commands, should be simpler. Attempted to prevent The Specialists error. Still need to find an event for TS like new round.

06/27/09 - v1.05
Added for cstrike only: New menu option "Refresh Canvas" deletes unsaved messages.

06/28/09 - v1.06
Fixed incorrect code dealing with TE_WORLDDECAL and TE_WORLDDECALHIGH. This problem caused incompatibility with Sven Coop.

06/28/09 - v1.07
> 256 changed to > 255

07/13/09 - v1.08
HLTV event registered only if it exists, TFC didn't have it
Any mod with decal_reset.sc event gets a "Refresh Canvas" menu option

07/14/09 - v1.09
Added a slight delay for the "Refresh Canvas" option so the decals get drawn 0.2 seconds after they are erased

Cvars (Regular HL Cvars)
Brought to you by: http://scripting.elxdraco.net/cvarlist/
mp_decals 300
It sets the maximum decals* visible on the screen. It has to be set before connection to server. It's not the same as r_decals.

r_decals 4096
It sets the decals* limit. If higher than mp_decals, it will be set to mp_decals value (It's reset to mp_decals value when connecting to server). It's not the same as mp_decals.

*Spray logo, bullet holes, grenade scorch, blood on ground
Examples


[IMG]http://img10.**************/img10/1939/dedust0002j.th.jpg[/IMG]
[IMG]http://img9.**************/img9/167/dedust0004.th.jpg[/IMG]
Yes, the orientation of the decals depends on the textures of the map.
[IMG]http://img6.**************/img6/5843/dedust0006i.th.jpg[/IMG]
Please criticize my code, make suggestions, report bugs, and leave your opinion. Thanks!

Downloads:
v1.04 - 567
v1.05 - 35
v1.06 - 19
v1.07 - 326
v1.08 - 57
Attached Files
File Type: sma Get Plugin or Get Source (wall_text.sma - 10793 views - 17.1 KB)
__________________

Last edited by stupok; 07-14-2009 at 23:52. Reason: Update!
stupok is offline
 



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 04:10.


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