Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ASCII Art by Zume */
- #define MAX_ASCII_ART_GEN 15
- enum renderEnum{
- renderExist,
- renderTextLen
- };
- new renderInfo[MAX_ASCII_ART_GEN][renderEnum];
- new _ASCII_ART_ARRAY[][7*7] = {
- // [DEC] [SYM] 32
- {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- // [DEC] ! [SYM] 33
- {0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0},
- // [DEC] " [SYM] 34
- {0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
- // [DEC] # [SYM] 35
- {0,0,1,0,1,0,0,0,0,1,0,1,0,0,1,1,1,1,1,1,1,0,0,1,0,1,0,0,1,1,1,1,1,1,1,0,0,1,0,1,0,0,0,0,1,0,1,0,0},
- // [DEC] $ [SYM] 36
- {0,0,1,1,1,1,0,0,1,0,1,0,0,0,0,1,0,1,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,1,0,1,0,0,1,1,1,1,0,0},
- // [DEC] % [SYM] 37
- {0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,1,1,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,1,1,0,0,1,0,0,1,1,0,0,0,0,0,0,0,0},
- // [DEC] & [SYM] 38
- {0,0,1,1,1,0,0,0,0,1,0,1,0,0,0,1,1,0,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,1,0,0,1,0,0,0,1,0,0,1,1,1,1,1,0},
- // [DEC] ' [SYM] 39
- {0,0,0,0,0,0,0,0,0,0,1,0,0,0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,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
- };
- stock GetRenderLen(id)
- return renderInfo[id][renderTextLen];
- stock RenderExist(id)
- return renderInfo[id][renderExist];
- stock GetASCIIDec(str[])
- {
- new
- s[4]
- ;
- format(s, sizeof(s), "%c", str);
- format(s, sizeof(s), "%i", s);
- return strval(s);
- }
- stock DeleteASCIIArt(id)
- {
- if(!((0 <= id < MAX_ASCII_ART_GEN) && renderInfo[id][renderExist]))
- return 0;
- new
- _var_t[64]
- ;
- new l = renderInfo[id][renderTextLen];
- for(new i; i < l; i++)
- {
- for(new x; x < 7*7; x++)
- {
- format(_var_t, sizeof(_var_t), "_%d_%d_%d_index", id, x, i);
- new
- value = getproperty(.name = _var_t);
- if((value != 0) && IsValidObject(value))
- {
- DestroyObject(value);
- }
- }
- }
- renderInfo[id][renderExist] = false;
- return 1;
- }
- stock RenderASCIIArt(modelid, str[], Float:x, Float:y, Float:z, Float:angle, Float:width, Float:height, color = -1)
- {
- new
- created_ = -1
- ;
- for(new r = 0; r < MAX_ASCII_ART_GEN; r++)
- {
- if(renderInfo[r][renderExist])
- continue;
- #define ____x 0
- #define ____y 1
- #define ____z 2
- z = z+(height*2)+15.0;
- new
- _temp[2],
- Float:pos[3],
- Float:_ls[2]
- ;
- _ls[____x] = x;
- _ls[____y] = y;
- for(new _index; _index < strlen(str); _index++)
- {
- x = (_ls[____x] == x ? x : _ls[____x]+(width*3));
- y = (_ls[____y] == y ? y : _ls[____y]+(width*4));
- pos[____x] = x;
- pos[____y] = y;
- pos[____z] = z;
- format(_temp, sizeof(_temp), "%.2s", str[_index]);
- new
- l = GetASCIIDec(_temp)
- ;
- if(strlen(_temp) > 0)
- {
- for(new i; i < 7*7; i++)
- {
- if(!(0 <= l-32 <= sizeof _ASCII_ART_ARRAY))
- {
- printf("ASCII-ART: The character '%c' [%i] not is valid in your include version.", l, l);
- continue;
- }
- if(_ASCII_ART_ARRAY[l-32][i])
- {
- new
- b_id = CreateObject(modelid, pos[____x], pos[____y], pos[____z], 0.0, 0.0, 0.0)
- ;
- created_ = r;
- new
- _var_t[64]
- ;
- format(_var_t, sizeof(_var_t), "_%d_%d_%d_index", r, i, _index);
- setproperty(.name = _var_t, .value = b_id);
- if(color != -1)
- SetObjectMaterial(b_id, 0, 16150, "ufo_bar", "GEwhite1_64", color);
- }
- pos[____x] += floatsin(-angle, degrees) + width/2;
- pos[____y] += floatcos(-angle, degrees) + width;
- _ls[____x] = pos[____x];
- _ls[____y] = pos[____y];
- if(((i+1) % 7) == 0)
- {
- pos[____x] = x;
- pos[____y] = y;
- pos[____z] -= height+(height/3);
- }
- }
- }
- }
- break;
- }
- if(created_ != -1)
- {
- renderInfo[created_][renderExist] = true;
- renderInfo[created_][renderTextLen] = strlen(str);
- return created_;
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement