- Joined
- Apr 14, 2012
- Messages
- 2,585
- Reaction score
- 0
- Points
- 36
I guess so. If someone want to write a scenario(s) that would be great.
On the ship I need to fix the thruster issue. Any other ideas,...
What thruster issue?
I guess so. If someone want to write a scenario(s) that would be great.
On the ship I need to fix the thruster issue. Any other ideas,...
// visual specs
CREW0 = AddMesh (oapiLoadMeshGlobal ("CAGE"));
SetMeshVisibilityMode (CREW0, MESHVIS_ALWAYS);
CREW1 = AddMesh (oapiLoadMeshGlobal ("CAGEGUY"));
SetMeshVisibilityMode (CREW1, MESHVIS_NEVER);
CREW2 = AddMesh (oapiLoadMeshGlobal ("CAGEVIP"));
SetMeshVisibilityMode (CREW2, MESHVIS_NEVER);
CREW3 = AddMesh (oapiLoadMeshGlobal ("CAGEMED"));
SetMeshVisibilityMode (CREW3, MESHVIS_NEVER);
CREW4 = AddMesh (oapiLoadMeshGlobal ("CAGESCI"));
SetMeshVisibilityMode (CREW3, MESHVIS_NEVER);
....
const char *p1MiscID = Crew.GetCrewMiscIdBySlotNumber(0);
if(Crew.GetCrewTotalNumber()==0){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
}
if((Crew.GetCrewTotalNumber()==1)&& (p1MiscID=="vip")){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_ALWAYS ); //show VIP
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
}
if((Crew.GetCrewTotalNumber()==1)&& (p1MiscID=="Doc")){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_ALWAYS ); //SHOW Doc
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
}
if((Crew.GetCrewTotalNumber()==1)&& (p1MiscID=="sci")){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW4, MESHVIS_ALWAYS ); //show sci
}
CREW5 = AddMesh (oapiLoadMeshGlobal ("CAGEcapt"));
SetMeshVisibilityMode (CREW5, MESHVIS_NEVER);
...
const char *p1MiscID = Crew.GetCrewMiscIdBySlotNumber(0);
if(Crew.GetCrewTotalNumber()==0){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW5, MESHVIS_NEVER );
}
if((Crew.GetCrewTotalNumber()==1)&& (p1MiscID=="Capt")){
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW5, MESHVIS_ALWAYS ); //show CAPT
}
const char *p1MiscID = Crew.GetCrewMiscIdBySlotNumber(0);
if(Crew.GetCrewTotalNumber()==0){
//show no one
SetMeshVisibilityMode( CREW1, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW2, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW3, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW4, MESHVIS_NEVER );
SetMeshVisibilityMode( CREW5, MESHVIS_NEVER );
}
if(Crew.GetCrewTotalNumber()==1){
//show only correct mesh
SetMeshVisibilityMode( CREW2, MESHVIS_ALWAYS ); //show VIP
//if (p1MiscID=="vip") SetMeshVisibilityMode( CREW2, MESHVIS_ALWAYS ); //show VIP
//if (p1MiscID=="Doc") SetMeshVisibilityMode( CREW3, MESHVIS_ALWAYS ); //show doc
//if (p1MiscID=="sci") SetMeshVisibilityMode( CREW4, MESHVIS_ALWAYS ); //show sci
//if (p1MiscID=="Capt") SetMeshVisibilityMode( CREW5, MESHVIS_ALWAYS ); //show Capt
//if (p1MiscID=="") SetMeshVisibilityMode( CREW5, MESHVIS_ALWAYS ); //show Capt
}
sprintf(oapiDebugString(),"ATM %s ", p1MiscID);
Parameter of filenames:
"Meshname-Text-Id.cfg"
Meshname = Name of the mesh that will be used with the Id. Mesh must exist in Meshes/UMmu folder
Max 18 characters. Don't add "msh" at the end. (ex: "UMmuP" "UMMuBio")
Text = Fonction name in regard of the Id (ex: "Captain" "Biologist") max 24 characters.
Id = Id, min 2 characters max 4 characters, (ex: "Capt" "Bio")
if(!_strnicmp(p1MiscID,"sec",3))SetMeshVisibilityMode( CREW7, MESHVIS_ALWAYS ); //show SECURITY
if(!_strnicmp(p1MiscID,"secx",4))SetMeshVisibilityMode( CREW8, MESHVIS_ALWAYS ); //show SECURITY
Ok THanks to Urwumpe I got this to work. But have run into a Ummu issue. If you deploy your ummu they come in a suit. Remove the suit but the ID is the same. So when you enter the cage it see the same id so a mesh with a suit appears. So If I add a id of a non suited person that fixes that. but now it reads the id and compares. by only looking at first 3 the id are the same. So a suited security person is seen.
UMmuSecX02X-Security-Sec NO SUITED
UMmuSec-Security-Sec SUITED
PHP:Parameter of filenames: "Meshname-Text-Id.cfg" Meshname = Name of the mesh that will be used with the Id. Mesh must exist in Meshes/UMmu folder Max 18 characters. Don't add "msh" at the end. (ex: "UMmuP" "UMMuBio") Text = Fonction name in regard of the Id (ex: "Captain" "Biologist") max 24 characters. Id = Id, min 2 characters max 4 characters, (ex: "Capt" "Bio")
Code:if(!_strnicmp(p1MiscID,"sec",3))SetMeshVisibilityMode( CREW7, MESHVIS_ALWAYS ); //show SECURITY if(!_strnicmp(p1MiscID,"secx",4))SetMeshVisibilityMode( CREW8, MESHVIS_ALWAYS ); //show SECURITY
Yes. The easy solution is not to be able to use non suited/jump suit guys. I can remove the helmet. Or use the jumpsuit guys and change the id to XSec that way it see the XSEc rather than the sEC.
I guess it depends on what most people/ Ummu use in their crafts. If it is suited then the helmet off is the way to go.
Or just leave helmet on I sure someone will try it on the moon,....