X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=ent_npc.c;fp=ent_npc.c;h=d43122330120a34bbec263daed8f30d2f8ba1cf9;hb=25c2e032930910c469e9f5278b8001b93f1a140a;hp=774edff45806ae47ea40dfeefe555847fdf7b7ba;hpb=1a194c3888293733939b2dd944251ae1b6c398ce;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_npc.c b/ent_npc.c index 774edff..d431223 100644 --- a/ent_npc.c +++ b/ent_npc.c @@ -129,6 +129,20 @@ void ent_npc_call( world_instance *world, ent_call *call ) gui_helper_clear(); } } + else if( npc->id == 4 ) + { + if( call->function == 0 ) + { + gui_helper_clear(); + vg_str text; + if( gui_new_helper( input_button_list[k_srbind_camera], &text )) + vg_strcat( &text, "First/Thirdperson" ); + } + else if( call->function == -1 ) + { + gui_helper_clear(); + } + } else { if( call->function == 0 ) @@ -205,6 +219,7 @@ void ent_npc_preupdate( ent_npc *ent, int active ) void npc_update( ent_npc *ent ) { if( ent->id == 3 ) return; + if( ent->id == 4 ) return; struct npc *npc_def = npc_resolve( ent->id ); VG_ASSERT( npc_def ); @@ -242,6 +257,7 @@ void npc_update( ent_npc *ent ) void npc_render( ent_npc *ent, world_instance *world, vg_camera *cam ) { if( ent->id == 3 ) return; + if( ent->id == 4 ) return; struct npc *npc_def = npc_resolve( ent->id ); VG_ASSERT( npc_def );