Raised This Month: $ Target: $400
 0% 

How to make 700 sprites visible all over the map???


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
z0mbiland
Senior Member
Join Date: Jan 2013
Old 05-29-2015 , 12:36   Re: How to make 700 sprites visible all over the map???
Reply With Quote #8

Quote:
Originally Posted by .Dare Devil. View Post
Even by changing the maximum amount of how many entities server can handle, you can't
change how many of them can be visible at once.

You just try that TE_SPRITETRAIL message out and see how many particles it allows.

If you know how blockmaker mod works then i edited that mod so you could have much much more block
entities.

All special blocks were entities and normal blocks where displayed with TE_PROJECTILE message
so i was able to have 512 normal blocks + 255 - ( player, w weapon, map entity's models that were visible )


Btw, be sure that you don't send too many messages at one server frame.
Other ways there will going to be problem. Problem may not appear if you test alone but when
there are players then player's client would crash.
I don't know how the block makers works - this is your code hint?! What you say about orpheu?
What function pass the visibility to integrate in TE_SPRITETRAIL stock?

engine.inc
is_visible
native is_visible(entity, target);

engine_stocks.inc
get_entity_visibility
stock get_entity_visibility(entity)
Returns 1 if entity is visible.

engine_stocks.inc
set_entity_visibility
stock set_entity_visibility(entity, visible = 1)
If visible = 1, entity will be set to be visible, else invisible.


fakemeta_util.inc
fm_is_ent_visible
stock bool:fm_is_ent_visible(index, entity, ignoremonsters = 0) {

fakemeta_util.inc
fm_is_visible
stock bool:fm_is_visible(index, const Float:point[3], ignoremonsters = 0) {

xs.inc
xs_freevisibleslots
stock bools_freevisibleslots(num)

Last edited by z0mbiland; 05-29-2015 at 14:34.
z0mbiland is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode