24.08.2010, 12:54
(
Последний раз редактировалось General Abe; 25.08.2010 в 08:03.
)
Ingame PlayerHoldingObject Editor
(updated to v1.1 25th August 2010)
(updated to v1.1 25th August 2010)
Basic filterscript-based editor I made (in a bit of a hurry) for holding objects which allows you to move objects around ingame, using the arrow keys, on each set of axes (XYZ offset, XYZ rotation). Realised that actually specifying offsets through trial and error is a bitch, so there had to be an easier way..amx: http://solidfiles.com/d/cf33/
Probably a bit crude, but it's simple enough to use. Load the filterscript (it requires zcmd to compile by the way) and /editorhelp will show all three of the commands in their glory. Pick an object and a bone ID (no, you can't pick 0, lulz), execute /editor and it'll appear on your player (and freeze you, as it uses up/down/left/right keystates). Left/right shifts the axis (XYZ rotation/offset) while up/down controls the object along the axis. Once you've got it right in place, /preview can be used to move the camera and see what you've done; /saveobj will spit out the SetPlayerHoldingObject code, already fully formatted with a comment of your choice, to /scriptfiles/savedobjs.txt.
And yes, it's great for briefcases and the like. While not initally my idea, it can also be used in a multiplayer situation. I've now updated it to use a textdraw, the sscanf stock (as opposed to the plugin, it was unnecessary here) and added some other bits here and there.
.pwn: http://pastebin.com/n1PxppfJ
screenshot: here