[INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
Details:
This object streamer was mainly made for a competition.
I havn't tested the dynamic object limit. It's set at 3000 1000 right now.
Using it in your script:
Under your gamemode's ongamemodeinit, add the function
.
Functions:
V1 Functions:- CreateDynamicObject
- DestroyDynamicObject
- GetDynamicObjectPos
- SetDynamicObjectPos
- MoveDynamicObject
V2 Functions:- +V1 Functions
- IsValidDynamicObject
- AttachDynamicObjectToPlayer
- DetachDynamicObjectFromPlayer
- StopDynamicObject
V2.1 Update
Addresses a major bug in the streamer.
V2.1 Download:
http://pastebin.com/f68f5e5f8
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
Sure.
Re: [INC] pObjectStreams [Pixels^] -
bzuco - 31.12.2008
using PlayerToPoint(Float:radi, playerid, Float
, Float:y, Float:z) in streamer is not very effective...
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
Care to explain?
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
Updated first post. 3 new functions.
GetDynamicObjectPos
SetDynamicObjectPos
MoveDynamicObject
Re: [INC] pObjectStreams [Pixels^] -
bzuco - 31.12.2008
because GetPlayerPos(playerid, oldposx, oldposy, oldposz); is used ObjectTotal times
useless...
another thing:
Object[dObjectID][Used] = 0;
Object[x][Used] = 1;
why integer? you waste memmory... better is to use boolean data type
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
True is the same as 1. I'd rather use Bits but meh, lazy.
Re: [INC] pObjectStreams [Pixels^] -
Serbish - 31.12.2008
Very nice.
5*
Re: [INC] pObjectStreams [Pixels^] -
bzuco - 31.12.2008
true is not 1, true is boolean and 1 is integer..
Re: [INC] pObjectStreams [Pixels^] -
Serbish - 31.12.2008
Quote:
Originally Posted by bzuco
true is not 1, true is boolean and 1 is integer..
|
true = 1
false = 0
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
Using bits is much faster but I'm too lazy to do that. I'm releasing my vehicle manager that has bit manipulation.
Re: [INC] pObjectStreams [Pixels^] -
bzuco - 31.12.2008
but good job
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 31.12.2008
You too.
Re: [INC] pObjectStreams [Pixels^] -
Serbish - 31.12.2008
Now all are friends.
Re: [INC] pObjectStreams [Pixels^] -
bzuco - 31.12.2008
i am sorry for my behavior
Re: [INC] pObjectStreams [Pixels^] -
Serbish - 31.12.2008
It's okay, it happens.
Happy new year to you also.
Re: [INC] pObjectStreams [Pixels^] -
luxeon - 31.12.2008
good 1 ,ill check tomorrow ,if my head will work properly :P (new year's party)
Re: [INC] pObjectStreams [Pixels^] -
x-cutter - 01.01.2009
This streamer looks very nice, but why should I choose it instead of other streamers? It looks very "lightweight" and "easy to use", I will maybe convert my stuff to this streamer. ("Replace" owns!)
If there's no bugs or w/e reported into this post, I will sure use this streamer. (wow non-complicated streamer with MoveObject-style function)
I suggest :
CreateDynamicPlayerObject
Destroy " " "
Move " " "
AttachDynamicObjectToPlayer
AttachDynamicPlayerObjectToPlayer
This may be alot of work but would be a good add-on to compete against some popular streamers
Re: [INC] pObjectStreams [Pixels^] -
Pixels^ - 01.01.2009
Thanks for the suggestion. Keep them coming.
Introducing pObjectStreams V2.
Details:
All errors you might have encountered have been fixed. New functions have been added!
Check first post for more details!
Re: [INC] pObjectStreams [Pixels^] -
ReV. - 01.01.2009
Nice job [Pixels^]
i like it