character body & hand models problems

broken avatar :(
Created 356 days ago
by ville88
0 Members and 1 Guest are viewing this topic.
365 views
broken avatar :(
×
broken avatar :(
Location: rueurope
Date Registered: 2 January 2012
Last active: 47 days ago
Posts
265
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
ville88's Groups
how fix it?


i added this string line in .csv
xmodel,c_usa_dempsey_body
xmodel,c_rus_nikolai_body
xmodel,c_jap_takeo_body
xmodel,c_ger_richtofen_offcap
xmodel,c_ger_richtofen_head
xmodel,c_ger_richtofen_body
xmodel,viewmodel_vtn_nva_standard_arms
xmodel,viewmodel_usa_pow_arms
xmodel,viewmodel_usa_hazmat_arms
xmodel,viewmodel_rus_prisoner_arms
mptype,player_t5_zm_theater
rawfile,mptype/player_t5_zm_theater.gsc
character,c_ger_richtofen_zt
character,c_jap_takeo_zt
character,c_rus_nikolai_zt
character,c_usa_dempsey_zt
but does not work

Double Post Merge: August 31, 2018, 12:18:10 pm
Solved!!! Just need add scripts in mapname.gsc


main()
{
level.zombiemode_precache_player_model_override = ::precache_player_model_override;
level.zombiemode_give_player_model_override = ::give_player_model_override;
level.zombiemode_player_set_viewmodel_override = ::player_set_viewmodel_override;
level.register_offhand_weapons_for_level_defaults_override = ::register_offhand_weapons_for_level_defaults_override;

}

precache_player_model_override()
{
mptype\player_t5_zm_theater::precache();
}

give_player_model_override( entity_num )
{
if( IsDefined( self.zm_random_char ) )
{
entity_num = self.zm_random_char;
}

switch( entity_num )
{
case 0:
character\c_usa_dempsey_zt::main();// Dempsy
break;
case 1:
character\c_rus_nikolai_zt::main();// Nikolai
break;
case 2:
character\c_jap_takeo_zt::main();// Takeo
break;
case 3:
character\c_ger_richtofen_zt::main();// Richtofen
break;
}
}

player_set_viewmodel_override( entity_num )
{
switch( self.entity_num )
{
case 0:
// Dempsey
self SetViewModel( "viewmodel_usa_pow_arms" );
break;
case 1:
// Nikolai
self SetViewModel( "viewmodel_rus_prisoner_arms" );
break;
case 2:
// Takeo
self SetViewModel( "viewmodel_vtn_nva_standard_arms" );
break;
case 3:
// Richtofen
self SetViewModel( "viewmodel_usa_hazmat_arms" );
break;
}
}

register_offhand_weapons_for_level_defaults_override()
{
register_lethal_grenade_for_level( "stielhandgranate" );
level.zombie_lethal_grenade_player_init = "stielhandgranate";

register_tactical_grenade_for_level( "zombie_cymbal_monkey" );
level.zombie_tactical_grenade_player_init = undefined;

register_placeable_mine_for_level( "mine_bouncing_betty" );
level.zombie_placeable_mine_player_init = undefined;

register_melee_weapon_for_level( "knife_zm" );
level.zombie_melee_weapon_player_init = "knife_zm";
}


Last Edit: August 31, 2018, 12:18:11 pm by ville88

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Twitch
Loading ...