Page 1 of 1

anti-crash

Posted: Wed Jul 27, 2005 7:28 pm
by lizardkid
A couple of you might have noticed a new type of crash going around that doesnt require anything at all, no custom, jsut a simply one-line console command.
dm_playermodel allied_SAS_fps

any fps model used as a playermodel would crash the server, because the server cant do it's little animation spree it usually does at spawn, because an fps model doesnt have those anims. i tried a fix for the server which added the normal animations to the fps model; server doesnt crash but all the clients without the fix do, since thye went through the same deal.

so the only other option left would be some code either in server config or map script checking to see if players have a _fps in their playermodel and change it to a valid one.

BOTTOM LINE:
is it possible to cycle through all the clients and check their playermodels before the animations are set and the server would crash?

more specifically, is the playermodel a field in the player class?

Posted: Wed Jul 27, 2005 8:05 pm
by Rookie One.pl
Hmm, interesting. Gonna try doing something about that.

It is, local.player.model.

Posted: Wed Jul 27, 2005 8:11 pm
by lizardkid
EDITED:

got a fix for it, just tweaking and testing atm. thanks for the .model thing Rookie, woulda gotten there sooner or later but it helped a lot ;)

Posted: Thu Jul 28, 2005 9:55 am
by Unreal_Demon
You must have the script running as fast as possible because the script may be too slow to catch the player selecting the skin, the easiest thing to do is the fix I made for it on the 26th.

http://www.modtheater.com/forum/showthr ... 798&page=1

For AA, SH, BT. My fix has been given to quite a few server providers.

Posted: Thu Jul 28, 2005 5:32 pm
by lizardkid
for freespawn games yes, im currently getting a server to test the speed of the script, on my computer, even 5 frames is unnoticable; although i see the effect on the lagometer.

But for roundspawn games it works perfectly, you'd never know it was there.

i dont feel special anymore :( :P

ah, looking at your fix you tried the same thing i did the second time around, at first i added the animations to fps models for the server and it worked, but all the clients crashed, then i tried something more similer to this and htey still crash because they dont have it, if they did they'd crash anyway.

mine only disconnects the crasher, anyone around him will not crash. ;)

Posted: Thu Jul 28, 2005 7:06 pm
by Rookie One.pl
I was thinking of something different, involving the FPS animation files as well. It would enforce 3rd person models if they do this and it would also provide protection with custom skins.

Posted: Thu Jul 28, 2005 10:38 pm
by lizardkid
not sure what you mean, trying to force files without _fps would jsut make hackers change the names of .tik fieles (whcih they could do with mine anyway)

I personally dont like servers that force my models... but i'm not sure what you mean by forcing true models, theres no way of knowing besides the .tik file, and i doubt you can read that from anything in MOH, and definitely not fast enough to catch a crasher.