preset spawn problem...
It all works, but players complain all the time that they are to often being respawned near the enemy and get killed.
Is there any way if someone respawns near an enemy to be respawned again somewhere else? |
Re: preset spawn problem...
help pls ???
p.s. sorry for bump but I need an answer... |
Re: preset spawn problem...
You can do nothing with this. It needs csdm_spawn_preset or whole csdm module rewritting. Dunno if and when it can be done.
|
Re: preset spawn problem...
Isn't this what csdm_protection.amxx is for?
|
Re: preset spawn problem...
No - that plugin is to prevent You from being killed instantly after respawning (if You respawn just near the enemy), but it doesn't change the user's origin while respawning.
Exactly this function - public spawn_Preset(id, num) in csdm_spawn_preset.sma - has to be rewritten a bit to take care about enemies position while respawning. But doing it in sma code will affect the performance.Why? Imagine You have to test all (for example 20) enemies postions if the player - which should be respawned - will not respawn just near some enemy. Imagine You tested 1'st spawn point and there was some enemy in some certain distance - for example 200 units. Then You test next spawn point and You need to check again all enemies. You are unlucky - there is also an enemy too close. Then You need to test next spawn point with all enemies position - if You are more lucky - maybe that position will be free of enemies nearby, but what if not? I think this algorithm should give up after max third check - otherwise You may experience lowering down the performance. I need some Bailopan's comment about that how (and if whole) does he want it should be done. |
Re: preset spawn problem...
That's what I meant. Sorry if I didn't make it clear. I was referring to a solution to his problem not his suggestion.
|
Re: preset spawn problem...
You can edit the algorithm to increase the minimum distance between enemies. However, if there are not enough spawn points, or there are too many players, the algorithm loses its effectiveness.
At some point you have to accept that deathmatch is often just unlucky. The minimum distance is set on line 178 of the preset spawning plugin. |
Re: preset spawn problem...
1 Attachment(s)
I've just rewrote that function Now it take care about teamnates (and ffa mode) and the allowed distance is 500 units (instead 250). There is no more avoids to infinitive loops (it cannot happen now). Please try it and let me know if it works better for You. It's compiled against AMX X 1.76d (but there is sma - so You can compile Your-self).
|
Re: preset spawn problem...
than U very much, I've just downloaded it and will try it and let you know
+ for you anyway for effort |
Re: preset spawn problem...
great, much better GJ ;)
|
| All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.