The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bolt Grenade
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #5
RE: Bolt Grenade
Calling the function on allclients is a bit expensive, since not all clients must be on the same screen ... leading to not needed packet sends, something like this would do it a little better:

Code:
local.x=<p.x>
local.y=<p.y>
local.z=<p.z>
forclients 18
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+5)> W<eval(<local.y>)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+4)> W<eval(<local.y>+1)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+3)> W<eval(<local.y>+2)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+2)> W<eval(<local.y>+3)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+1)> W<eval(<local.y>+4)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>)> W<eval(<local.y>+5)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0

    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-4)> W<eval(<local.y>-1)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-3)> W<eval(<local.y>-2)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-2)> W<eval(<local.y>-3)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-1)> W<eval(<local.y>-4)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>)> W<eval(<local.y>-5)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0

    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-5)> W<eval(<local.y>)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-4)> W<eval(<local.y>+1)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-3)> W<eval(<local.y>+2)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-2)> W<eval(<local.y>+3)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>-1)> W<eval(<local.y>+4)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>)> W<eval(<local.y>+5)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0

    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+5)> W<eval(<local.y>)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+4)> W<eval(<local.y>-1)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+3)> W<eval(<local.y>-2)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+2)> W<eval(<local.y>-3)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>+1> W<eval(<local.y>-4)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
    sendpacket 0c0 00 D0 D0 Wi_xbolt_x W<dlocal.x> W<dlocal.y> B<eval(<local.z>+5)> W<eval(<local.x>)> W<eval(<local.y>-5)> B<eval(<local.z>+5+{1 5})> B01 B16 00 00 00 B0 D0 D0
endfor
05-30-2015 05:41 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Bolt Grenade - Jonaleth - 05-27-2015, 10:07 AM
RE: Bolt Grenade - Jonaleth - 05-28-2015, 09:48 AM
RE: Bolt Grenade - darksun84 - 05-28-2015, 05:20 PM
RE: Bolt Grenade - amonvangrell - 05-30-2015, 01:19 PM
RE: Bolt Grenade - XuN - 05-30-2015 05:41 PM
RE: Bolt Grenade - Jonaleth - 05-30-2015, 06:13 PM
RE: Bolt Grenade - escribano - 06-21-2015, 07:57 AM
RE: Bolt Grenade - Diathim - 10-21-2015, 01:57 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)