[FilterScript] Attached Object Editor
#1

Attached Object Editor
Someone has made one of these before, I looked at it, and found myself wanting more, so I made one

[ame]http://www.youtube.com/watch?v=n85lVIcdPLE[/ame]

Installation
You will need to create a folder `attachments` in your scriptfiles directory. This is the directory where object files are saved. You can change the SAVE_PATH in the script if you wish.

To compile this filterscript, you will need the new 0.3c includes
You will also need Y-Less sscanf2 plugin
https://sampforum.blast.hk/showthread.php?tid=120356
and the zcmd command processor by Zeex
https://sampforum.blast.hk/showthread.php?tid=91354

Note: change the value of the MAX define in the script to reflect your servers number of slots, or you can simply replace MAX with MAX_PLAYERS

Instructions for use
You will need to be an RCON admin to load and use the editor.
Once loaded, use /editor to enter the interface. Your model will be frozen, and the camera set behind you.
Textdraws will appear to help with commands / keys(green), also a quick reference guide to bone numbers(red) and finally some indicators so you know which attachment index and editing style you have selected(blue)




Global Movement keys
There are four modes of movement ( camera, offset, rotation and scale ) all of which are adjusted using the same keys. UP / DOWN for Yaxis, LEFT / RIGHT for Xaxis, and LSHIFT/LCTRL for Z axis. ( check textdraws if you have custom keys defined ). You can hold down SPACE to speed up the movement. It won't take you long to become familiar with these keys.

Camera Movement
Hold down the LMB ( or equivalent ) and use the 6 direction keys to move the camera. You can also toggle 'freeze' mode with the MMB. When you are unfrozen the blue textdraws will dissapear, and editing the object is suspended.
There is also the option to /camera, this returns you to normal GTA operation ( while still in the editor ). These options are useful for getting a good look at the objects you have adited.

Adding or removing objects
/index will give you a descrition of the options for adding and removing objects.
/index [index 1-5] [model#] [bone] to add a new object
/index [index 1-5] to switch to editing a different index if you have more than one object attached
/index [index 1-5] 0 to remove an object from a specific index

/scale - this command will return the object to 1:1:1 scale, because this is almost impossible to do any other way

At any time you can /asave and /aload files into the editor, this is handy when making complex combinations of objects. Object files can contain 1-5 objects, and they are saved in a format which can be pasted directly into other scripts inside the SetPlayerAttachedObject function.

You can also /aload a file from outside the editor, and it will add it to your model.

Download
Pastebin
http://pawn.pastebin.com/J9z0fNhi

Attached_Object_Editor.pwn
http://rapidshare.com/files/44175757...ect_Editor.pwn
Attached_Object_Editor.amx
http://rapidshare.com/files/44175768...ect_Editor.amx


Anyway, I hope you find this filterscript useful.
[edit] re-uploaded files without silly typo
Reply


Messages In This Thread
Attached Object Editor - by Rachael - 10.01.2011, 05:11
Re: Attached Object Editor - by [03]Garsino - 10.01.2011, 05:33
Re: Attached Object Editor - by Haydz - 10.01.2011, 05:37
Respuesta: Attached Object Editor - by Chukin_95 - 10.01.2011, 06:03
Respuesta: Attached Object Editor - by Chukin_95 - 10.01.2011, 06:07
Re: Attached Object Editor - by Rachael - 10.01.2011, 06:46
Re: Attached Object Editor - by Speederx - 10.01.2011, 07:05
Re: Attached Object Editor - by Rachael - 10.01.2011, 07:06
Re: Attached Object Editor - by Speederx - 10.01.2011, 07:08
Re: Attached Object Editor - by Retardedwolf - 10.01.2011, 07:16
Re: Attached Object Editor - by smeti - 10.01.2011, 08:36
Re: Attached Object Editor - by Rachael - 10.01.2011, 09:12
Re: Attached Object Editor - by Lorenc_ - 10.01.2011, 10:01
Re: Attached Object Editor - by Speederx - 10.01.2011, 19:24
Re: Attached Object Editor - by woot - 10.01.2011, 20:06
Re: Attached Object Editor - by Rachael - 11.01.2011, 00:06
Re: Attached Object Editor - by Georgelopez1 - 11.01.2011, 01:30
Re: Attached Object Editor - by SeQualX - 11.01.2011, 07:56
Re: Attached Object Editor - by Curti$ - 11.01.2011, 16:17
AW: Attached Object Editor - by GHOSTY_101 - 14.01.2011, 14:58
AW: Attached Object Editor - by GHOSTY_101 - 14.01.2011, 20:45
Re: Attached Object Editor - by MrDeath537 - 15.01.2011, 00:19
Re: Attached Object Editor - by Scienziatopazzo - 23.01.2011, 15:13
Re : Re: Attached Object Editor - by Amine_Mejrhirrou - 24.02.2011, 05:17
Re: Attached Object Editor - by jejemonerz123 - 24.02.2011, 05:52
Re: Attached Object Editor - by ...:Lucian:... - 14.04.2011, 19:44
Re: Attached Object Editor - by CrazyBlob - 17.04.2011, 15:31
Re: Attached Object Editor - by Naruto_Emilio - 18.05.2011, 22:11
Re: Attached Object Editor - by SpiderWalk - 19.05.2011, 12:43
Re: Attached Object Editor - by BASITJALIL - 22.05.2011, 05:01
Re: Attached Object Editor - by HeLiOn_PrImE - 25.12.2012, 00:32

Forum Jump:


Users browsing this thread: 1 Guest(s)