Hi there !
I’m working on a random level generator working with square tiles re-arranging themselves once the level start.
I created a “func_tile” entity that I use in gtkRadiant to set up my tiles with brushes.
When the game starts, it goes through the bsp’s entities. I intentionally don’t spawn the func tiles; later on I have a function that spawns my tiles dynamically :
ent = G_spawn; SP_duplicate_func_tile( ent, g_entities[g_Ttiles]);
That last function works in a similar way as the SP_func_* functions in g_mover.c.
Everything compiles correctly, but once I test my map, there is a client / renderer side problem :
On the server / game side, everything seems to work fine : the player collides correctly with the entity’s geometry.
Visually, only One instance of the entity is drawn ! and this is relative to where you are looking - if I spawn only one func_tile, it’s allright, but if there is 2, and if the two are on the screen, only one will be drawn.
I hope my description talks …
So basically, my question is : is it possible to draw the same brushmodel (func_* type entity) multiple times ?
I’m looking inside the SV_SetBrushModel function right now.