Author: Not specified Language: cpp
Description: Not specified Timestamp: 2013-05-15 01:42:49 +0000
View raw paste Reply
  1. #ifndef _JK2MP
  2.         //SP
  3.         if ( vehicle->skin
  4.                 && vehicle->skin[0] )
  5.         {
  6.                 ratl::string_vs<256>                    skins(vehicle->skin);
  7.                 for (ratl::string_vs<256>::tokenizer i = skins.begin("|"); i!=skins.end(); i++)
  8.                 {
  9.                         //this will just turn off surfs if there is a *off shader on a surf, the skin will actually get thrown away when cgame starts
  10.                         gi.RE_RegisterSkin( va( "models/players/%s/model_%s.skin", vehicle->model, *i) );
  11.                         //this is for the server-side call, it will propgate down to cgame with configstrings and register it at the same time as all the other skins for ghoul2 models
  12.                         G_SkinIndex( va( "models/players/%s/model_%s.skin", vehicle->model, *i) );
  13.                 }
  14.         }
  15.         else
  16.         {
  17.                 //this will just turn off surfs if there is a *off shader on a surf, the skin will actually get thrown away when cgame starts
  18.                 gi.RE_RegisterSkin( va( "models/players/%s/model_default.skin", vehicle->model) );
  19.                 //this is for the server-side call, it will propgate down to cgame with configstrings and register it at the same time as all the other skins for ghoul2 models
  20.                 G_SkinIndex( va( "models/players/%s/model_default.skin", vehicle->model) );
  21.         }
  22. #else
  23. #ifndef QAGAME
  24.         if ( vehicle->skin
  25.                 && vehicle->skin[0] )
  26.         {
  27.                 trap_R_RegisterSkin( va( "models/players/%s/model_%s.skin", vehicle->model, vehicle->skin) );
  28.         }
  29. #endif
  30. #endif
View raw paste Reply