08.10.2010, 21:50
(
Последний раз редактировалось M4S7ERMIND; 22.07.2011 в 20:02.
)
M4S7reamer v1
Really efficient object streamer!
Defines:
Look a the picture below to get the idea on how this works: (There should be M_YSTART instead of another M_XSTART)
If player was in zone C4, objects would be streamed in green zones (B3, B4, B5, C3, C4, C5, D3, D4 and D5).
Video:
A video to demonstrate how it works (in small scale). It also shows how precisely moving objects are synched.
[ame]http://www.youtube.com/watch?v=bwEbgxYqQTQ[/ame]
Bugs:
If player goes beyond the borders (bright red lines in the picture) and comes back, objects get bugged. (Fixed!)
Instructions:
1. Download m_streamer.zip
2. Put m_objects.inc in \pawno\include folder.
3. Include m_objects.inc in your gamemode and filterscripts (compile them).
4. Put m_streamer.pwn in \filterscripts folder and compile it.
5. Open server.cfg and type "m_streamer"(without quotations) next to filterscripts.
Download:
MediaFire
You will also need:
foreach (by ******)
Really efficient object streamer!
Defines:
pawn Код:
#define M_ZONES 30 //Total amount of zones will be M_ZONES*M_ZONES (keep this value even)
#define M_SIZE 300 //Width(x) and height(y) of one zone (the larger size, the better)
#define M_OBJECTS 3000 //Change this value to amount of objects on your server
#define M_XSTART 0.0 //X start position (zones are created around this position)
#define M_YSTART 0.0 //Y start position (zones are created around this position)
Look a the picture below to get the idea on how this works: (There should be M_YSTART instead of another M_XSTART)
If player was in zone C4, objects would be streamed in green zones (B3, B4, B5, C3, C4, C5, D3, D4 and D5).
Video:
A video to demonstrate how it works (in small scale). It also shows how precisely moving objects are synched.
[ame]http://www.youtube.com/watch?v=bwEbgxYqQTQ[/ame]
Bugs:
If player goes beyond the borders (bright red lines in the picture) and comes back, objects get bugged. (Fixed!)
Instructions:
1. Download m_streamer.zip
2. Put m_objects.inc in \pawno\include folder.
3. Include m_objects.inc in your gamemode and filterscripts (compile them).
4. Put m_streamer.pwn in \filterscripts folder and compile it.
5. Open server.cfg and type "m_streamer"(without quotations) next to filterscripts.
Download:
MediaFire
You will also need:
foreach (by ******)