View Single Post
Re: BotAim 2 crashes my server!
Old
  (#13)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: BotAim 2 crashes my server! - 24-02-2005

These invisible bots (and also players) are made by gore plugin. Execatly - the problem is , when someone does a headshot or knifekill on the bot/player. Since next round he stays invisible. It's because of this line in Your gore plugin.
Code:
static fx_trans(player,amount) 
{ 
   set_user_rendering(player,kRenderFxNone,0,0,0,kRenderTransAlpha,amount) 
   return PLUGIN_CONTINUE 
}
Becasuse of some reason the rendering isn't reseted at the player respawn.
The solution is change a bit the function event_respawn in gore plugin in this way (add the line with 'set_user_rendering'):
Code:
public event_respawn(id) 
{ 
   gHealthIndex[id] = get_user_health(id) 
   set_user_rendering(id,kRenderFxNone,255,255,255,kRenderNormal,16) 
   return PLUGIN_CONTINUE 
}
After this You need to recompile the plugin, copy its recompiled version (gore.amx) to amx\plugins and start the server again.

[EDIT] Pierre, how many times I need to say this CODE function still doesn't work correctly? 'kRenderTransAlpha" and 'kRenderNormal' - they should be one words (not divided). And bolding in 'code' and in 'php' doesn't work.
[/EDIT]

Last edited by KWo; 24-02-2005 at 08:58..
  
Reply With Quote