[Include] [INC] pObjectStreams [Pixels^]
#1

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
pawn Code:
p_OnGameModeInit();
.

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
Reply
#2

Sure.
Reply
#3

using PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z) in streamer is not very effective...
Reply
#4

Care to explain?
Reply
#5

Updated first post. 3 new functions.

GetDynamicObjectPos
SetDynamicObjectPos
MoveDynamicObject
Reply
#6

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
Reply
#7

True is the same as 1. I'd rather use Bits but meh, lazy.
Reply
#8

Very nice.
5*
Reply
#9

true is not 1, true is boolean and 1 is integer..
Reply
#10

Quote:
Originally Posted by bzuco
true is not 1, true is boolean and 1 is integer..
true = 1
false = 0

Reply
#11

Using bits is much faster but I'm too lazy to do that. I'm releasing my vehicle manager that has bit manipulation.
Reply
#12

but good job
Reply
#13

You too.
Reply
#14

Now all are friends.
Reply
#15

i am sorry for my behavior
Reply
#16

It's okay, it happens.
Happy new year to you also.
Reply
#17

good 1 ,ill check tomorrow ,if my head will work properly :P (new year's party)
Reply
#18

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

Reply
#19

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!
Reply
#20

Nice job [Pixels^]

i like it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)