News:

Come Chat with us live! Learn how HERE!

Main Menu

Independent slick surface

Started by rotacak, April 15, 2009, 02:08:58 PM

rotacak

Hi,
I want to ask if is possible to use slick surface (behavior) only when I want, even if slick surface is not in map at all.

Something like:
if (playerID4_is_granger == 1)
{
playerID4_ground_surface = slick;
}

And in game all grangers will slide even on standard surface. I tried search source codes but I found nothing, only few things on client side :-(

gimhael

If you build your own game.qvm you can do this: in the bg_misc.c file there is the list of all classes, and each class has an individiual friction value. The value is the same for all, but if you reduce the friction for granger/adv. granger you should get that effect.

If you want to have more complicated things, you'll probably have to mess with PM_Friction in bg_pmove.c.

David

It's worth noting that changing anything in bg_ will require a download to work properly.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Amanieu

It will require a download to make client-side prediction work properly, but the game will still work without it.
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P

David

I said "properly".  It'll run fine, just won't be very playable.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

rotacak

And there is no other way how server can tell to client that there is slick surface? Client prediction is based on information from local map.pk3?

And one more question: is possible to detect if player granger will touch triggers in map? For example:
if (granger touch trigger_hurt)
{
kill that granger;
}

Archangel

i would assume you could modify the check to see if the client is touching a trigger_hurt, to confirm their class  :granger: :granger: