Add asp mob

This commit is contained in:
unknown 2020-06-14 01:08:17 +02:00 committed by jshipsey
parent 59777ee688
commit 4b493b196c
25 changed files with 166 additions and 1 deletions

View File

@ -577,6 +577,10 @@
"monitor": {
"keyword": "monitor",
"generic": "Monitor"
},
"asp": {
"keyword": "asp",
"generic": "Asp"
}
}
}

BIN
assets/voxygen/voxel/npc/asp/female/chest.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/foot_bl.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/foot_br.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/foot_fl.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/foot_fr.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/head_lower.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/head_upper.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/jaw.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/tail_front.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/female/tail_rear.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/chest.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/foot_bl.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/foot_br.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/foot_fl.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/foot_fr.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/head_lower.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/head_upper.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/jaw.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/tail_front.vox (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/voxygen/voxel/npc/asp/male/tail_rear.vox (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -208,4 +208,56 @@
central: ("npc.monitor.female.tail_front"),
),
),
(Asp, Male): (
upper: (
offset: (-5.0, -5.0, -5.0),
central: ("npc.asp.male.head_upper"),
),
lower: (
offset: (-6.0, -3.0, -7.5),
central: ("npc.asp.male.head_lower"),
),
jaw: (
offset: (-2.0, -4.0, -1.0),
central: ("npc.asp.male.jaw"),
),
chest: (
offset: (-5.0, -7.5, -5.0),
central: ("npc.asp.male.chest"),
),
tail_rear: (
offset: (-1.0, -14.0, -2.0),
central: ("npc.asp.male.tail_rear"),
),
tail_front: (
offset: (-3.0, -14.0, -4.0),
central: ("npc.asp.male.tail_front"),
),
),
(Asp, Female): (
upper: (
offset: (-5.0, -5.0, -5.0),
central: ("npc.asp.female.head_upper"),
),
lower: (
offset: (-6.0, -3.0, -7.5),
central: ("npc.asp.female.head_lower"),
),
jaw: (
offset: (-2.0, -4.0, -1.0),
central: ("npc.asp.female.jaw"),
),
chest: (
offset: (-5.0, -7.5, -5.0),
central: ("npc.asp.female.chest"),
),
tail_rear: (
offset: (-1.0, -14.0, -2.0),
central: ("npc.asp.female.tail_rear"),
),
tail_front: (
offset: (-3.0, -14.0, -4.0),
central: ("npc.asp.female.tail_front"),
),
),
})

View File

@ -143,4 +143,40 @@
lateral: ("npc.monitor.female.foot_br"),
),
),
(Asp, Male): (
front_left: (
offset: (-5.5, -3.5, -7.0),
lateral: ("npc.asp.male.foot_fl"),
),
front_right: (
offset: (-5.5, -3.5, -7.0),
lateral: ("npc.asp.male.foot_fr"),
),
back_left: (
offset: (-4.5, -2.5, -7.0),
lateral: ("npc.asp.male.foot_bl"),
),
back_right: (
offset: (-4.5, -2.5, -7.0),
lateral: ("npc.asp.male.foot_br"),
),
),
(Asp, Female): (
front_left: (
offset: (-5.5, -3.5, -7.0),
lateral: ("npc.asp.female.foot_fl"),
),
front_right: (
offset: (-5.5, -3.5, -7.0),
lateral: ("npc.asp.female.foot_fr"),
),
back_left: (
offset: (-4.5, -2.5, -7.0),
lateral: ("npc.asp.female.foot_bl"),
),
back_right: (
offset: (-4.5, -2.5, -7.0),
lateral: ("npc.asp.female.foot_br"),
),
),
})

View File

@ -31,6 +31,7 @@ pub enum Species {
Alligator = 1,
Salamander = 2,
Monitor = 3,
Asp = 4,
}
/// Data representing per-species generic data.
@ -42,6 +43,7 @@ pub struct AllSpecies<SpeciesMeta> {
pub alligator: SpeciesMeta,
pub salamander: SpeciesMeta,
pub monitor: SpeciesMeta,
pub asp: SpeciesMeta,
}
impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta> {
@ -54,15 +56,17 @@ impl<'a, SpeciesMeta> core::ops::Index<&'a Species> for AllSpecies<SpeciesMeta>
Species::Alligator => &self.alligator,
Species::Salamander => &self.salamander,
Species::Monitor => &self.monitor,
Species::Asp => &self.asp,
}
}
}
pub const ALL_SPECIES: [Species; 4] = [
pub const ALL_SPECIES: [Species; 5] = [
Species::Crocodile,
Species::Alligator,
Species::Salamander,
Species::Monitor,
Species::Asp,
];
impl<'a, SpeciesMeta: 'a> IntoIterator for &'a AllSpecies<SpeciesMeta> {

View File

@ -131,54 +131,63 @@ impl<'a> From<&'a comp::quadruped_low::Body> for SkeletonAttr {
(Alligator, _) => (0.5, 3.25),
(Salamander, _) => (3.0, 1.0),
(Monitor, _) => (3.5, 2.0),
(Asp, _) => (6.0, 5.5),
},
head_lower: match (body.species, body.body_type) {
(Crocodile, _) => (8.0, 0.0),
(Alligator, _) => (9.0, 0.25),
(Salamander, _) => (10.0, 2.0),
(Monitor, _) => (10.0, 3.0),
(Asp, _) => (9.0, 2.5),
},
jaw: match (body.species, body.body_type) {
(Crocodile, _) => (0.0, -3.0),
(Alligator, _) => (8.5, -2.0),
(Salamander, _) => (2.0, -3.0),
(Monitor, _) => (0.0, -1.0),
(Asp, _) => (1.0, -2.0),
},
chest: match (body.species, body.body_type) {
(Crocodile, _) => (0.0, 5.0),
(Alligator, _) => (0.0, 5.0),
(Salamander, _) => (0.0, 5.0),
(Monitor, _) => (0.0, 5.0),
(Asp, _) => (0.0, 8.0),
},
tail_rear: match (body.species, body.body_type) {
(Crocodile, _) => (-12.5, -1.0),
(Alligator, _) => (-13.0, -1.0),
(Salamander, _) => (-9.0, 0.0),
(Monitor, _) => (-12.0, 0.0),
(Asp, _) => (-14.0, -2.0),
},
tail_front: match (body.species, body.body_type) {
(Crocodile, _) => (-6.0, 0.0),
(Alligator, _) => (-5.0, 0.0),
(Salamander, _) => (-7.5, 0.0),
(Monitor, _) => (-6.5, 0.0),
(Asp, _) => (-6.0, -2.0),
},
feet_f: match (body.species, body.body_type) {
(Crocodile, _) => (6.0, 6.0, -1.0),
(Alligator, _) => (6.75, 6.25, -1.0),
(Salamander, _) => (6.0, 6.0, -2.0),
(Monitor, _) => (6.0, 6.0, 0.0),
(Asp, _) => (6.5, 6.0, -1.0),
},
feet_b: match (body.species, body.body_type) {
(Crocodile, _) => (6.0, -6.0, -1.0),
(Alligator, _) => (6.5, -4.5, -1.0),
(Salamander, _) => (6.0, -6.0, -2.0),
(Monitor, _) => (6.0, -6.0, 0.0),
(Asp, _) => (6.5, -3.5, -1.0),
},
height: match (body.species, body.body_type) {
(Crocodile, _) => (1.0),
(Alligator, _) => (1.0),
(Salamander, _) => (1.0),
(Monitor, _) => (1.0),
(Asp, _) => (1.0),
},
}
}