Tremulous Forum
Mods => Modding Center => Topic started by: rotacak on April 15, 2009, 02:08:58 pm
-
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 :-(
-
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.
-
It's worth noting that changing anything in bg_ will require a download to work properly.
-
It will require a download to make client-side prediction work properly, but the game will still work without it.
-
I said "properly". It'll run fine, just won't be very playable.
-
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;
}
-
i would assume you could modify the check to see if the client is touching a trigger_hurt, to confirm their class :granger: :granger: