[ANY] Respawn Ball
2 Attachment(s)
Hello,
My plugin serves to respawn the ball when there is a goal on the map Ba_Jail_Electric_Razor_V6 or Ba_Jail_Electric_Razor_Go. U need only upload the plugin and put the map. This plugin work for CSS or CSGO. |
Re: [ANY] Respawn Ball
Great idea, but I have a question, if the map already gives the respawn of the ball when to make goals, this plugin generates some conflict if he puts it in these maps?
|
Re: [ANY] Respawn Ball
1 Attachment(s)
Please fix the performance issues before people start adding this to their server..
A few things I saw: 1. You don't need to store the Timer and kill it at MapEnd, just the the map flag on the timer it will remove the timer on map end automatically. 2. Do you really need to include morecolors? You don't even use it. 3. Do you really need to PrintToServer if the map doesn't match? I'd assume server owners would like to have this plugin plus play other maps, and it provides no useful information. 4. Why do you create Middle_Stadium variable if you never change it. 5. Why do you loop through 2048 entities every 0.1 seconds, retrieving their targetname for each one.. (First off you can start from MaxClients since you're looking for a specific entity and players are probably not it.) 5a. Store the Entity Reference on round start, and use that instead of looping and checking the target name for 2048 entities. 6. CageFoot1 & CageFoot2 are pretty similar, but not only that they both store and call for the entities position, you can either merge or send in the position to the function. 6a. Just replace these two with 2 static variables and one function. 7. You can probably get away with not including smlib, so it can compile on the forum. You only use one function from it. EDIT: Didn't test it but maybe this will work? |
Re: [ANY] Respawn Ball
Quote:
|
| All times are GMT -4. The time now is 12:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.