[FilterScript] w_objects
#1

w_objects
Wan's in-game objects system

VERSION: V.0.1.


This project is marked as a dud.
Download link has been removed.
This system is not downloadable anymore.
This theard will be updated with a new download link of a newer fixed version. (V.0.2.)


As You can see this is a "In-game objects system".

Very efficient, effective and simple system to: CreateObject, MoveObject, SetObjectRot, StopObject, DestroyObject, and all the other system's features, in-game!

You're able to create maximum 2 objects in-game.
Also, after destroying the object/objects, You will be able to create a new object/objects again.


* Note: You cannot create the object 1 if the object 1 already exists.


Only RCON logged-in administrators are able to use w_objects. Make it to corrseponds to the admin system You're using, if You wish.

If not RCON logged-in:

Код:
SendErrorMessage(playerid);
Код:
[w_objects]: You're not allowed to use this command!

Includes:

~ The only include needed is "w_objects.inc".

pawn Код:
#include <WAN/w_objects>
The include is downloadable, it's in the package with w_objects.pwn and w_objects.amx.


Features:
  • Change object's movement speed
  • Teleport to object's current position
  • Teleport the object to Yourself's current position
  • Destroy all objects in the same time
  • Enable/Disable object's notifications
  • Check Your object's status
  • Create object at Your current position/location
  • Move object to the selected direction
  • Rotate object - Rotations: X, Y, Z
  • Stop object movements if is object moving
  • Destroy object and make the object's slot available for a new object
  • Check w_objects commands list/settings/options
~ Object's movement speed: 3 (changeable)

Object's movement speed changed:



~ Notifications option: disabled - OnFilterScriptInit. (changeable)

This is the list of all w_object's notifications:



This is a "object created" notification:




MY OBJECT'S STATUS:





Commands:
  • /CreateObject - creates a selected object. (Selecting object by the object's ID)
  • /MoveObject - moves a selected object, also selected direction.
  • /RotateObject - rotates a selected object, selected rotation - RotX, RotY, RotZ.
  • /StopObject - stops a selected object, if is the object moving.
  • /DestroyObject - destroys a selected object, if object exists and makes the slot available (create a new object).
  • /w_objects - settings/commands list/options/etc...
This is a dialog of /CreateObject command, this is how it looks like when You're creating a object (2):



This is a dialog of /RotateObject command, this is how it looks like when You're rotating a object:

RotX (Rotation X):



Selecting which of 3 object's rotations to change/modify:




Errors:
  • [ODE] - Object doesnt exists.
  • [EO] - Editing object - object doesn't exists.
  • [DO] - Destroy object - object doesn't exists.
  • [NEAO] - Not editing any object - currently not editing any object.
  • [RO] - Rotate object - object doesn't exists.
  • [MO] - Move object - object doesn't exists.
  • [STTO1] - Negative - successfully teleported to object 1 - object doesn't exists.
  • [STTO2] - Negative - successfully teleported to object 2 - object 2 doesn't exitsts.
  • [DF1] - Negative - successfully teleported the object to You 1 - object doesn't exists.
  • [DF2] - Negative - successfully teleported the object to You 2 - object doesn't exists.

* Note: All errors are in this format.

This is an example of the error [ODE]:





Known bugs:

~ There are no bugs nor typos. The system is tested very well, and no bugs nor typos weren't found.
~ But still, if You find anything please message/notify me and I'll give me best to fix it and re-upload it.



Download:

This version of w_object is marked as a dud.
It is not downloadable anymore, this theard/download link will be updated when V.0.2. is released.


Installation:

How to install w_objects in a 3 simple steps:

1. Copy w_objects.pwn and w_objects.amx - Paste it in Your server's folder > filterscripts.

2. Copy "WAN" folder - Paste it in Your server's folder > pawno > include.

3. Open server.cfg - add: "w_objects" (filterscripts).

4. You're done.



Special thanks to SA-MP Forums - scripting help!
New features coming with newer versions/updates, by saying "new features" I also meant You'll be able to create more objects, etc... (w_objects V.0.2 in a progress!)


~ Wan
Reply
#2

Cool +1 rep
Reply
#3

Quote:
Originally Posted by [SU]Spartan
Посмотреть сообщение
Cool +1 rep
Thank You.
Reply
#4

Aww cant add u rep on phone,I will add u when I go on PC 4 HOURS
Reply
#5

Quote:
Originally Posted by [SU]Spartan
Посмотреть сообщение
Cool +1 rep
you can't give rep -.-
Reply
#6

This is coded pretty poorly no dynamic design.
Reply
#7

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
This is coded pretty poorly no dynamic design.
I added dymanic design, You'll see when V.0.2. is released.

Some of the features from V.0.2, I already added:
  • Change object's virtual world
  • Change object's interior
  • Set draw distance
  • Set object material
  • Set object material text
  • Attach object to a vehicle
  • Attach object to playerid
  • Attach object to another object
  • Attach 3D text label to the object
  • Create a object's map icon (You can choose the icon)
  • Maximum objects limit changed to: 10
  • Re-place object with some other object's ID
  • Set object postition
  • Move all objects in the same time
  • Rotate all objects in the same time
  • Stop all objects in the same time
  • Teleport ID (player) to the object
  • Teleport object to the ID (player)
It's still not fully done, still need to add some options in dialogs.
Reply
#8

Man, awesome!

Also, don't listen to this [uL]Pottus idiot, he is posting bad comments everywhere.
Some people should more respect others people effort and work.
Reply
#9

Quote:
Originally Posted by NickHaudMTA
Посмотреть сообщение
Man, awesome!

Also, don't listen to this [uL]Pottus idiot, he is posting bad comments everywhere.
Some people should more respect others people effort and work.
Maybe you should read the code first, I'm always honest it's either good, bad and needs some work in this case it's bad and needs some work.

Let me ask you something what good does some comment like "Man, awesome!" do for him? Absolutely nothing so I'll reiterate everything I don't like in this project so he knows what he needs to work on.

- Poor indentation
- Use a command processor like zcmd/ycmd even if you have one command
- Repeat code since dynamic design was not taken into account at all
- Use enums to store object data

The whole design is just bad up to this point I really don't see trying to work with this code being very productive in future versions without re-writing pretty much everything.
Reply
#10

[uL]Pottus is right mate. Try fixing the indentation of your codding next time. And NickHaudMTA, are u a fool? Did you even read the code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)