[Include] Haystack text creator - UNIQUE!
#1

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.
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 */
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:
pawn Code:
#define FONT 16442 //Model ID of the cow
#include <haystacks>
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.
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 ' '
Notes
  • 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)
v1.0 - 11/12/2010:
Code:
* Initial release
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:
  • Victious/Will Parker: Testing
Please test this script and tell me what you think about it.
Reply
#2

Hehe, this shit is awesome!
Reply
#3

Amazing!
Reply
#4

Haha, very...unique xD
Great job! This could be good on many different types of servers.
Reply
#5

Quote:

Haystack text creator - UNIQUE!

Indeed!
Reply
#6

I do not even want to know why you would spend 22 hours on a script.

Either way, creative and nice work.
Reply
#7

Quote:
Originally Posted by Grim_
View Post
I do not even want to know why you would spend 22 hours on a script.

Either way, creative and nice work.
All the maths would fuck up the duration MEGA TIME
Reply
#8

Yeah, I'm aware. I said I didn't know why.
Reply
#9

Quote:
Originally Posted by Grim_
View Post
Yeah, I'm aware. I said I didn't know why.
For the result?
Reply
#10

Quote:
Originally Posted by [FU]Victious
View Post
For the result?
Nothing, in my opinion, is worth 22 hours of work that is not going to truly benefit you. Sure, he will become better "known", get attention, what have you, but nothing that will impact him IRL.

But either way, once again, good job.
Reply
#11

@ Victious: You know there is a PM System right? USE IT!!!!! FOR CHRIST SAKES..

This is a nice script btw.
Reply
#12

Thanks guys. Edited the main post as I forgot to post something regarding the haystack object, check "What's to tweak myself?" section.

@Grim_ I could tell ya. But to put it simple, the most annoying parts where when I needed to convert and transform the coordinates from MTA to usable formats.
Reply
#13

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
@ Victious: You know there is a PM System right? USE IT!!!!! FOR CHRIST SAKES..

This is a nice script btw.
Thanks for telling me something I already knew.
Reply
#14

Awesome!! 5/5

nice work hiddos
Reply
#15

wow simply, just wow.
Reply
#16

Not unique. It's been done before. Try searching
Reply
#17

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Nothing, in my opinion, is worth 22 hours of work that is not going to truly benefit you. Sure, he will become better "known", get attention, what have you, but nothing that will impact him IRL.

But either way, once again, good job.
With that way of thinking, why are you even sitting on your PC or playing games or browsing these forums? It will not impact you IRL.

This what he does is called 'killing time' aka doing something when bored / nothing else to do. Some people waste their time playing games, some people waste their time scripting and coding.

__________________

Great FS.

You could somehow make the haystacks more dynamic and think of them as pixels, this way creating all the characters ( / ( ) & % ¤ # 2 3 4 6 = - _ ) wouldn't be a problem. Also, having multiple letter sizes would be possible as well:
Код:
ooo  ooo  o o  oo
o    o o  ooo  o o
ooo  ooo  o o  oo
  o  o o  o o  o
ooo  o o  o o  o


ooooo ooooo o   o oooo
o     o   o oo oo o   o
ooooo ooooo o o o oooo
    o o   o o   o o
ooooo o   o o   o o


ooooooo  ooooooo  o     o  oooooo
o        o     o  oo   oo  o     o
o        o     o  o o o o  o     o
ooooooo  ooooooo  o  o  o  oooooo
      o  o     o  o     o  o
      o  o     o  o     o  o
ooooooo  o     o  o     o  o
I don't know if you understand what I mean, but currently you have pre-made (mapped) the characters for the use. If you knew the size of the haystack, you could somehow find out a way to place them correctly with functions and form characters that way. Use them as pixels instead of pre-made structures.
Reply
#18

Quote:
Originally Posted by Finn
Посмотреть сообщение
Great FS.

You could somehow make the haystacks more dynamic and think of them as pixels, this way creating all the characters ( / ( ) & % ¤ # 2 3 4 6 = - _ ) wouldn't be a problem. Also, having multiple letter sizes would be possible as well:.
Agreed. Add support for more characters will be really cool, almost for: - = " , . _


Edit: 1300 posts xD
Reply
#19

Damn, unique i'm going to check it out
Reply
#20

Awesome
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)