DiSaMe Posted June 16, 2012 Share Posted June 16, 2012 (edited) I thought it would be a good idea to make a website where I would put my MTA scripts. http://crystalmv.net84.net It currently includes: AirbrakeBone attachmentsBytedataDrawtagGravity gunLava floodNPC high-level control (HLC)NPC HLC trafficNPC HLC traffic editorNPC task sequencerParticle objectsServer collisionsSticky fishesTraffic light sequence Edited September 19, 2012 by Guest 1 Link to comment
Woovie Posted June 17, 2012 Share Posted June 17, 2012 Keep up the work! edit: I added size thingies to your brush script, probably not the optimal implementation, but it works. I'd like to request an always showing brush over your mouse, perhaps at 50% opacity so you can see where you're going to draw. If you want my size code just let me know it's very simple, just makes your size variables a global and sets the line to size*2 And some fun I had Link to comment
DiSaMe Posted June 17, 2012 Author Share Posted June 17, 2012 Maybe I will include those features in the future. And nice paintings, by the way Link to comment
Scripting Moderators Sarrum Posted June 17, 2012 Scripting Moderators Share Posted June 17, 2012 link? Link to comment
Woovie Posted June 17, 2012 Share Posted June 17, 2012 http://pastebin.com/DQh3miZq It's rather simple but it works great! Edit: I forgot, you need to change the function drawToPicture! function drawToPicture(x,y) if not isCursorShowing() then return end dxSetBlendMode("modulate_add") local cx,cy = getCursorPosition() local sw,sh = guiGetScreenSize() cx,cy = cx*sw-x,cy*sh-y cx,cy = cx,cy if drawing then dxSetRenderTarget(drawdest) local color = tocolor(colors.r[active_color],colors.g[active_color],colors.b[active_color],255) dxDrawLine(px,py,cx,cy,color,(brush_size*2)) drawCircle(px,py,brush_size,color) drawCircle(cx,cy,brush_size,color) dxSetRenderTarget() can_spray = true end px,py = cx,cy end Link to comment
Scripting Moderators Sarrum Posted June 18, 2012 Scripting Moderators Share Posted June 18, 2012 LeetWoovie, thank you. Link to comment
Axel Posted June 19, 2012 Share Posted June 19, 2012 About your drawtag ressource. How can i save the tags into an xml file or mysql table? Only saving the createElement arguments? Link to comment
DiSaMe Posted June 19, 2012 Author Share Posted June 19, 2012 The script uses element data, so you need to get and set it on saving and loading. But some functions are attached to element data change events, so I don't know how stability will be affected. I will probably make functions for creating tags and getting information about them which could be called from other resources. Link to comment
cotton Posted June 20, 2012 Share Posted June 20, 2012 Good idea. That is much more meaningful. Link to comment
TwiX! Posted June 20, 2012 Share Posted June 20, 2012 amazing resource will good for rp/g servers ;d and others Link to comment
FabienWang Posted June 30, 2012 Share Posted June 30, 2012 "Nice gun you have here kid. But having a gun on the street is prohibited in here." told me the policeman. And then they were drawing stuffs on the walls and dancing Finally, they came back to me and said: "Hey kid, what the f**k did you draw on the walls, you better clean it all or we'll have to arrest you!" Link to comment
Ren_712 Posted July 1, 2012 Share Posted July 1, 2012 DxDrawMaterialLine3D is it ? That looks great . Are you going to release that to the community ? Link to comment
DiSaMe Posted July 6, 2012 Author Share Posted July 6, 2012 I moved my site to http://crystalmv.net84.net. Also, I'll probably release Drawtag 1.1 soon. Link to comment
Woovie Posted July 6, 2012 Share Posted July 6, 2012 Amazing work on DrawTag 1.1! Your size changer is way cooler than mine Link to comment
DiSaMe Posted July 6, 2012 Author Share Posted July 6, 2012 I released it: Amazing work on DrawTag 1.1! Your size changer is way cooler than mine Well, yeah, but you were first to do it I didn't do it in the first version because I'm not going to turn the script into professional image editing software anyway Link to comment
Woovie Posted July 6, 2012 Share Posted July 6, 2012 How do I save a tag and load a tag ? I can't quite figure that out. Link to comment
DiSaMe Posted July 7, 2012 Author Share Posted July 7, 2012 Drawtag exports two functions for that purpose, createTagFromExistingData and getTagData. You can read about them in readme.html. Also, you can look at save_tags.lua in drawtag_bc to see how it uses the functions. It stores texture data into binary file and the rest of element data into XML file. Link to comment
Slothman Posted July 7, 2012 Share Posted July 7, 2012 I'm a big fan of all your scripts. Bone_attach and particle_effects have been very useful. Link to comment
robhol Posted July 7, 2012 Share Posted July 7, 2012 I remember seeing that drawtag script years ago, it blew my mind. Very impressive. Link to comment
PatrickChucky Posted July 7, 2012 Share Posted July 7, 2012 hey, i cant figure out how to make it save and load the tags, can you make a tutorial or try to explain please? id really apreciate that, thanks. Link to comment
DiSaMe Posted July 7, 2012 Author Share Posted July 7, 2012 drawtag_bc does that automatically when you stop either drawtag or drawtag_bc and loads when you start both of them. If you want to make a tag saving script yourself, there are two exported functions, getTagData and createTagFromExistingData, which you can read about in readme.html. You can also look at save_tags.lua in drawtag_bc if you need an example. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now