give Luna a third AR avatar. Because she a haxx0r
This commit is contained in:
parent
72a81701e0
commit
954807fa59
22
src/cmd.rs
22
src/cmd.rs
|
@ -126,6 +126,7 @@ struct ParserState {
|
||||||
light_color: Option<Color>,
|
light_color: Option<Color>,
|
||||||
ar_model: Option<String>,
|
ar_model: Option<String>,
|
||||||
ar_model2: Option<String>,
|
ar_model2: Option<String>,
|
||||||
|
ar_model3: Option<String>,
|
||||||
show_only_in_map_at_distance: Option<(f64, String)>,
|
show_only_in_map_at_distance: Option<(f64, String)>,
|
||||||
}
|
}
|
||||||
impl Default for ParserState {
|
impl Default for ParserState {
|
||||||
|
@ -188,6 +189,7 @@ impl Default for ParserState {
|
||||||
light_color: None,
|
light_color: None,
|
||||||
ar_model: None,
|
ar_model: None,
|
||||||
ar_model2: None,
|
ar_model2: None,
|
||||||
|
ar_model3: None,
|
||||||
show_only_in_map_at_distance: None,
|
show_only_in_map_at_distance: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -690,6 +692,9 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
|
||||||
["armodel_secondary", asset_name] => {
|
["armodel_secondary", asset_name] => {
|
||||||
state.ar_model2 = Some(asset_name.to_string());
|
state.ar_model2 = Some(asset_name.to_string());
|
||||||
}
|
}
|
||||||
|
["armodel_tertiary", asset_name] => {
|
||||||
|
state.ar_model3 = Some(asset_name.to_string());
|
||||||
|
}
|
||||||
["targeted", "yes"] => {
|
["targeted", "yes"] => {
|
||||||
state.is_targeted_on_startup = true;
|
state.is_targeted_on_startup = true;
|
||||||
}
|
}
|
||||||
|
@ -1205,6 +1210,23 @@ fn spawn_entities(
|
||||||
load_asset(ar_asset_name, &mut entitycmd, &*asset_server);
|
load_asset(ar_asset_name, &mut entitycmd, &*asset_server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(ar_asset_name) = &state.ar_model3 {
|
||||||
|
let mut entitycmd = commands.spawn((
|
||||||
|
hud::AugmentedRealityOverlay {
|
||||||
|
owner: actor_entity,
|
||||||
|
scale: 1.0,
|
||||||
|
},
|
||||||
|
world::DespawnOnPlayerDeath,
|
||||||
|
SpatialBundle {
|
||||||
|
visibility: Visibility::Hidden,
|
||||||
|
..default()
|
||||||
|
},
|
||||||
|
NotShadowCaster,
|
||||||
|
NotShadowReceiver,
|
||||||
|
));
|
||||||
|
load_asset(ar_asset_name, &mut entitycmd, &*asset_server);
|
||||||
|
}
|
||||||
|
|
||||||
if state.is_point_of_interest || state.is_moon || state.is_planet {
|
if state.is_point_of_interest || state.is_moon || state.is_planet {
|
||||||
let mut entitycmd = commands.spawn((
|
let mut entitycmd = commands.spawn((
|
||||||
hud::PointOfInterestMarker(actor_entity),
|
hud::PointOfInterestMarker(actor_entity),
|
||||||
|
|
|
@ -334,6 +334,7 @@ actor 700 -100 -1100 suitv2
|
||||||
chatid Luna
|
chatid Luna
|
||||||
armodel suit_ar_skirt
|
armodel suit_ar_skirt
|
||||||
armodel_secondary suit_ar_nekomimi
|
armodel_secondary suit_ar_nekomimi
|
||||||
|
armodel_tertiary suit_ar_bra
|
||||||
angularmomentum 0 0 0
|
angularmomentum 0 0 0
|
||||||
wants maxrotation 0
|
wants maxrotation 0
|
||||||
wants maxvelocity none
|
wants maxvelocity none
|
||||||
|
|
Loading…
Reference in a new issue