[FilterScript] Ingame player holding object editor.
#1

Ingame PlayerHoldingObject Editor
(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.

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.
.amx: http://solidfiles.com/d/cf33/
.pwn: http://pastebin.com/n1PxppfJ
screenshot: here
Reply
#2

Thanks, very nice work.
Reply
#3

ain't working for me....all commands say , SERVER: Unkown Command
Reply
#4

Nice work i made one of these, but mines all done with commands not even thought of KeyStateChange, and yh specifying the offsets/rot was a ballache. GJ
Reply
#5

Quote:
Originally Posted by bertuspiteri
Посмотреть сообщение
ain't working for me....all commands say , SERVER: Unkown Command
Yeh' same happends for me..
Reply
#6

Didn't tested it, the comments above say it doesen't work but what ever. From what I see in the description and code it looks cool.
Reply
#7

Nice FS =)
Reply
#8

Verry niiiice ^^
Reply
#9

Love you! I tried 100x but some objects just don't obey.

Gonna try it out!

EDIT: Nothing works..
Reply
#10

You need zcmd + sscanf 2.0 to run it, are you sure you're not doing it wrong? (yes, even using the AMX requires the sscanf 2.0 plugin).
Reply
#11

Nice work, Kangaroo Jack!
Reply
#12

lmao. I'll update this with the sscanf stock (for you guys who can't be bothered using the plugin), and textdraws.
Reply
#13

Updated.
Reply
#14

Good job mate!
Reply
#15

I'm having a problem... (the fs worked great 4 me), but, when I put the code in my gm, it does not compile... pawno returns me that warning (number of arguments does not match definitions). Do you know what is the problem?

thx, and congrats anyway
Reply
#16

It looks like a nice filterscript!
I'll test it later.
Reply
#17

nice hat sir
Reply
#18

Good job. * Throws a cookie at Brian. *
Reply
#19

Awesome Xd!! i love this one i'will use this
Reply
#20

Quote:
Originally Posted by matheuzinho
Посмотреть сообщение
I'm having a problem... (the fs worked great 4 me), but, when I put the code in my gm, it does not compile... pawno returns me that warning (number of arguments does not match definitions). Do you know what is the problem?

thx, and congrats anyway
Which line?

(also, make sure you're using up to date includes and such).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)