11.12.2010, 20:54
(
Last edited by Hiddos; 12/12/2010 at 03:27 PM.
Reason: Updated to v1.01!
)
This script is in full development. Suggestions are always welcome!
What is this?
This is an include that allows you create text in-game made out of haystacks. I've seen some servers with haystacks forming text, so I decided to make an FS for it.
Pictures
A random picture.
Functions
There's currently but one function, look below for upcoming features.
How does it work?
The FIRST character of the text gets created at the INPUT X AND Y VALUES, and then moves on according to the rotations. Picture:
What's to tweak myself?
You can tweak the object model that the script uses. Don't like the haystacks? Replace it with cows. Or something different, like balls or miniguns. You define 'FONT' before including, for example:
Or you could go inside the script itself and change it there.
Usable characters
Here's an up-to-date list of usable characters, symbols and other typable thingies.
Notes
Upcoming features
Here's a list of things I was thinking about:
Changelog
All changes are listed here:
v1.01 - 12/12/2010:
v1.0 - 11/12/2010:
Download
I guess that's what you came for anyways.
v1.01
PasteBin.com
SolidFiles
v1.0
PasteBin.com
SolidFiles
Final notes
Please give me some credit if you use this script. It took me 22 hours to make (of which only 7 hours were useful).
Credits
Special credits to:
What is this?
This is an include that allows you create text in-game made out of haystacks. I've seen some servers with haystacks forming text, so I decided to make an FS for it.
Pictures
A random picture.
Functions
There's currently but one function, look below for upcoming features.
pawn Code:
native CreateSentence(text[], Float:x, Float:y, Float:z, Float: rZ);
/* Describtion:
Creates the sentence
Syntax:
text[] - The text to create
Float:x - The BEGINNING X-location of the text
Float:y - The BEGINNING Y-location of the text
Float:z - The Z-location of the text
Float:rZ - The rotation angle */
The FIRST character of the text gets created at the INPUT X AND Y VALUES, and then moves on according to the rotations. Picture:
What's to tweak myself?
You can tweak the object model that the script uses. Don't like the haystacks? Replace it with cows. Or something different, like balls or miniguns. You define 'FONT' before including, for example:
pawn Code:
#define FONT 16442 //Model ID of the cow
#include <haystacks>
Usable characters
Here's an up-to-date list of usable characters, symbols and other typable thingies.
Code:
Roman alphabet: Aa - Bb - Cc - Dd - Ee - Ff - Gg - Hh - Ii - Jj - Kk - Ll - Mm Nn - Oo - Pp - Qq - Rr - Ss - Tt - Uu - Vv - Ww - Xx - Yy - Zz -- All other symbols found will be replaced by a space ' '
- Starting from v1.01, the script will automatically use the plugin streamer by Incognito if the streamer include has been included. The streamer.inc MUST be included before including the haystacks include in order to make it use the streamer plugin!
Upcoming features
Here's a list of things I was thinking about:
- Support for more streamers
- Assigning IDs to hay text, this will allow several more features like MoveSentence(hayid, ...) or DestroySentence(hayid, ...)
- Way more features
- Possible Y-axis rotation. SHOULD that work, there is a very small chance that X-axis rotations will be added as well.
- Support for other characters like number (1, 2, 3), strokes (/ | \ -_), etc.
- More optimized code
Changelog
All changes are listed here:
v1.01 - 12/12/2010:
Code:
This is a recommended update. * Plugin streamer support * Faster code (50% of all floatsin/floatcos functions were removed)
Code:
* Initial release
I guess that's what you came for anyways.
v1.01
PasteBin.com
SolidFiles
v1.0
PasteBin.com
SolidFiles
Final notes
Please give me some credit if you use this script. It took me 22 hours to make (of which only 7 hours were useful).
Credits
Special credits to:
- Victious/Will Parker: Testing