add command "template clippy"
This commit is contained in:
parent
0bbca303cb
commit
3f1dc27684
25
src/cmd.rs
25
src/cmd.rs
|
@ -253,6 +253,31 @@ pub fn load_defs(mut ew_spawn: EventWriter<SpawnEvent>) {
|
|||
// command: angularmomentum 0 0 0
|
||||
state.angular_momentum = DVec3::ZERO;
|
||||
}
|
||||
["template", "clippy"] => {
|
||||
// command: angularmomentum 0 0 0
|
||||
state.angular_momentum = DVec3::ZERO;
|
||||
|
||||
// command: wants maxrotation 0
|
||||
state.wants_maxrotation = Some(0.0);
|
||||
// command: wants maxvelocity 0
|
||||
state.wants_maxvelocity = Some(0.0);
|
||||
|
||||
// command: thrust 15 6 3 400 0.5
|
||||
state.thrust_forward = 15.0;
|
||||
state.thrust_back = 6.0;
|
||||
state.thrust_sideways = 3.0;
|
||||
state.reaction_wheels = 400.0;
|
||||
state.warmup_seconds = 0.5;
|
||||
|
||||
// command: scale 3
|
||||
state.model_scale = 3.0;
|
||||
|
||||
// command: pronoun it
|
||||
state.pronoun = Some("it".to_string());
|
||||
|
||||
// command: pointofinterest yes
|
||||
state.is_point_of_interest = true;
|
||||
}
|
||||
|
||||
// Parsing actors
|
||||
["actor", x, y, z, model] => {
|
||||
|
|
|
@ -436,18 +436,13 @@ actor -3300 10 0 pizzeria
|
|||
scale 0.25
|
||||
light FF8F4A 5000000
|
||||
actor -33 0 4 clippy
|
||||
template clippy
|
||||
name "Clippy™ Convenience Companion"
|
||||
relativeto pizzeria
|
||||
armodel clippy_ar
|
||||
angularmomentum 0 0 0
|
||||
wants maxrotation 0
|
||||
wants maxvelocity 0
|
||||
wants lookat PLAYERCAMERA
|
||||
thrust 15 6 3 400 0.5
|
||||
rotationy -126
|
||||
scale 3
|
||||
chatid SubduedClippy
|
||||
pronoun it
|
||||
|
||||
actor -45 -4 -4 suitv2
|
||||
template person
|
||||
|
@ -502,20 +497,14 @@ actor -300 0 40 suitv2
|
|||
pronoun she
|
||||
|
||||
actor 100 -18000 2000 clippy
|
||||
template clippy
|
||||
relativeto "player"
|
||||
id "busstopclippy"
|
||||
name "StarTrans Clippy™ Serenity Station"
|
||||
armodel clippy_ar
|
||||
angularmomentum 0 0 0
|
||||
wants maxrotation 0
|
||||
wants maxvelocity 0
|
||||
wants lookat PLAYERCAMERA
|
||||
thrust 15 6 3 400 0.5
|
||||
pointofinterest yes
|
||||
rotationy -90
|
||||
scale 3
|
||||
chatid ClippyTransSerenity
|
||||
pronoun it
|
||||
|
||||
actor 60 0 0 "orb_busstop"
|
||||
name "StarTrans Bus Stop: Serenity Station"
|
||||
|
@ -651,20 +640,14 @@ actor 100 -18000 2000 clippy
|
|||
pronoun he
|
||||
|
||||
actor -184971e3 149410e3 -134273e3 clippy
|
||||
template clippy
|
||||
relativeto jupiter
|
||||
id "busstopclippy2"
|
||||
name "StarTrans Clippy™ Farview Station"
|
||||
armodel clippy_ar
|
||||
angularmomentum 0 0 0
|
||||
wants maxrotation 0
|
||||
wants maxvelocity 0
|
||||
wants lookat PLAYERCAMERA
|
||||
thrust 15 6 3 400 0.5
|
||||
pointofinterest yes
|
||||
rotationy -90
|
||||
scale 3
|
||||
chatid ClippyTransFarview
|
||||
pronoun it
|
||||
|
||||
actor 60 0 0 "orb_busstop"
|
||||
name "StarTrans Bus Stop: Farview Station"
|
||||
|
@ -794,22 +777,16 @@ actor -184971e3 149410e3 -134273e3 clippy
|
|||
|
||||
|
||||
actor 0 -44e3 0 clippy
|
||||
template clippy
|
||||
relativeto jupiter
|
||||
id "busstopclippy3"
|
||||
name "StarTrans Clippy™ Metis Prime Station"
|
||||
armodel clippy_ar
|
||||
wants lookat PLAYERCAMERA
|
||||
orbitaround jupiter 128000e3
|
||||
orbit_phase_offset -0.002
|
||||
angularmomentum 0 0 0
|
||||
wants maxrotation 0
|
||||
wants maxvelocity 0
|
||||
wants lookat PLAYERCAMERA
|
||||
thrust 15 6 3 400 0.5
|
||||
pointofinterest yes
|
||||
rotationy -90
|
||||
scale 3
|
||||
chatid ClippyTransMetis
|
||||
pronoun it
|
||||
|
||||
actor 60 0 0 "orb_busstop"
|
||||
name "StarTrans Bus Stop: Metis Prime Station"
|
||||
|
|
Loading…
Reference in a new issue