Skip to content

Commit bc64309

Browse files
committed
Make suggested changes
1 parent 843f631 commit bc64309

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Client/mods/deathmatch/logic/luadefs/CLuaPedDefs.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ void CLuaPedDefs::LoadFunctions()
3535
{"givePedWeapon", GivePedWeapon},
3636

3737
{"setPedVoice", SetPedVoice},
38-
{"setElementBonePosition", ArgumentParser<SetElementBonePosition>},
39-
{"setElementBoneRotation", ArgumentParser<SetElementBoneRotation>},
40-
{"setElementBoneQuaternion", ArgumentParser<SetElementBoneQuaternion>},
41-
{"setElementBoneMatrix", ArgumentParser<SetElementBoneMatrix>},
38+
{"setElementBonePosition", ArgumentParserWarn<false, SetElementBonePosition>},
39+
{"setElementBoneRotation", ArgumentParserWarn<false, SetElementBoneRotation>},
40+
{"setElementBoneQuaternion", ArgumentParserWarn<false, SetElementBoneQuaternion>},
41+
{"setElementBoneMatrix", ArgumentParserWarn<false, SetElementBoneMatrix>},
4242
{"setPedRotation", SetPedRotation},
4343
{"setPedWeaponSlot", SetPedWeaponSlot},
4444
{"setPedCanBeKnockedOffBike", SetPedCanBeKnockedOffBike},
@@ -65,10 +65,10 @@ void CLuaPedDefs::LoadFunctions()
6565
{"playPedVoiceLine", ArgumentParser<PlayPedVoiceLine>},
6666

6767
{"getPedVoice", GetPedVoice},
68-
{"getElementBonePosition", ArgumentParser<GetElementBonePosition>},
69-
{"getElementBoneRotation", ArgumentParser<GetElementBoneRotation>},
70-
{"getElementBoneQuaternion", ArgumentParser<GetElementBoneQuaternion>},
71-
{"getElementBoneMatrix", ArgumentParser<GetElementBoneMatrix>},
68+
{"getElementBonePosition", ArgumentParserWarn<false, GetElementBonePosition>},
69+
{"getElementBoneRotation", ArgumentParserWarn<false, GetElementBoneRotation>},
70+
{"getElementBoneQuaternion", ArgumentParserWarn<false, GetElementBoneQuaternion>},
71+
{"getElementBoneMatrix", ArgumentParserWarn<false, GetElementBoneMatrix>},
7272
{"getPedRotation", GetPedRotation},
7373
{"getPedWeaponSlot", GetPedWeaponSlot},
7474
{"canPedBeKnockedOffBike", CanPedBeKnockedOffBike},
@@ -1006,7 +1006,7 @@ std::variant<bool, CLuaMultiReturn<float, float, float>> CLuaPedDefs::GetElement
10061006
if (!entity || !entity->GetBonePosition(static_cast<eBone>(bone), position))
10071007
return false;
10081008

1009-
return std::make_tuple(position.fX, position.fY, position.fZ);
1009+
return CLuaMultiReturn<float, float, float>(position.fX, position.fY, position.fZ);
10101010
}
10111011

10121012
std::variant<bool, CLuaMultiReturn<float, float, float>> CLuaPedDefs::GetElementBoneRotation(CClientPed* ped, const std::uint16_t bone)
@@ -1022,7 +1022,7 @@ std::variant<bool, CLuaMultiReturn<float, float, float>> CLuaPedDefs::GetElement
10221022
if (!entity || !entity->GetBoneRotation(static_cast<eBone>(bone), yaw, pitch, roll))
10231023
return false;
10241024

1025-
return std::make_tuple(yaw, pitch, roll);
1025+
return CLuaMultiReturn<float, float, float>(yaw, pitch, roll);
10261026
}
10271027

10281028
std::variant<bool, CLuaMultiReturn<float, float, float, float>> CLuaPedDefs::GetElementBoneQuaternion(CClientPed* ped, const std::uint16_t bone)
@@ -1039,7 +1039,7 @@ std::variant<bool, CLuaMultiReturn<float, float, float, float>> CLuaPedDefs::Get
10391039
if (!entity || !entity->GetBoneRotationQuat(static_cast<eBone>(bone), x, y, z, w))
10401040
return false;
10411041

1042-
return std::make_tuple(x, y, z, w);
1042+
return CLuaMultiReturn<float, float, float, float>(x, y, z, w);
10431043
}
10441044

10451045
std::variant<bool, std::array<std::array<float, 4>, 4>> CLuaPedDefs::GetElementBoneMatrix(CClientPed* ped, const std::uint16_t bone)

0 commit comments

Comments
 (0)