function main(_0x37aa46){
var _0x4fe216=_0x37aa46['getSubject']();
}
function interact(_0x1ff08f){
try{
let _0x12050d=_0x1ff08f['getSubject']();
let _0x2cdac5=_0x12050d['getPosition']();
let _0x34ea02=_0x12050d['getStates']();
let _0x4c5907=_0x34ea02['getString']('id');
_0x1ff08f['getObject']()['getEntityData']()['setString']('npcId',_0x4c5907);
_0x1ff08f['getObject']()['executeScript']('ui_corpse.js');
}
catch(_0xf85bc){
'InteractError'+_0x1ff08f['send'](_0xf85bc);
}
}
function initialization(_0xfc9953){
try{
let _0x42fa06=_0xfc9953['getSubject']();
let _0x5d5321=_0x42fa06['getPosition']();
let _0x396c35=_0x42fa06['getRotations']();
let _0xdc3a98=_0x42fa06['getUniqueId']();
let _0x40bb1e=JSON['parse'](_0x42fa06['getStates']()['getString']('inventory'));
let _0x4f1ce7=_0xfc9953['getServer']()['getAllPlayers']();
let _0x2e9695=null;
let _0x182092=Infinity;
_0x42fa06['setRotations'](_0x396c35['x'],_0x396c35['y'],_0x396c35['z']);
for(i in _0x4f1ce7){
let _0x595707=_0x4f1ce7[i];
let _0xcee130=_0x595707['getPosition']();
let _0x61c9aa=_0xcee130['distance'](_0x5d5321);
if(_0x61c9aa<_0x182092&&_0x595707['getGameMode']()!=0x3){
_0x182092=_0x61c9aa;
_0x2e9695=_0x595707;
}
}
if(_0x2e9695['isPlayer']()){
let _0x2123e3=_0x2e9695['getInventory']();
let _0x1e7f31=JSON['parse'](_0x2e9695['getStates']()['getString']('skin'));
let _0x266040=_0x1e7f31['type']=='fred'?'male':'female';
let _0x3ffe87='{
Hitbox:{
Eye:0.9f,Sneak:0.1f,Enabled:1b,Height:0.05f,Width:1f
}
,Actions:{
idle:{
Speed:0.0f,Name:"stun1_idle"
}
}
,Pose:{
Pose:{
head:{
RX:-0.5235988f
}
,right_knee:{
}
,right_arm:{
}
,left_leg:{
}
,torso:{
}
,left_arm:{
}
,right_leg:{
}
,model:{
}
,right_elbow:{
}
,left_knee:{
}
,left_elbow:{
}
}
}
,Skin:"'+_0x1e7f31['link']+'",Name:"chameleon.hnt_'+_0x266040+'"
}
';
for(let _0xe9c019=0x0;
_0xe9c019<_0x2123e3['size']();
_0xe9c019++){
let _0x40a4fc=_0x2123e3['getStack'](_0xe9c019);
if(_0x40a4fc['getItem']()['getId']()=='huntclient:shotgun'){
let _0xb995b1=_0x40a4fc['getData']();
_0xb995b1['setBoolean']('cooldown',![]);
_0x40a4fc['setData'](_0xb995b1);
}
if(_0x40a4fc['getItem']()['getId']()!='minecraft:air'){
_0x40bb1e['push']({
'id':_0x40a4fc['getItem']()['getId'](),'count':_0x40a4fc['getCount'](),'tag':_0x40a4fc['getData']()['dumpJSON']()['replace'](/""hnt":/g,'"hnt:')
}
);
}
}
_0x42fa06['setMorph'](mappet['createMorph'](_0x3ffe87));
_0x42fa06['playAnimation']('stun1');
_0x42fa06['getStates']()['setString']('id',_0xdc3a98);
_0x42fa06['getStates']()['setString']('name',_0x2e9695['getName']());
_0x42fa06['getStates']()['setString']('inventory',JSON['stringify'](_0x40bb1e));
}
}
catch(_0x5d06eb){
'initializationError'+_0xfc9953['send'](_0x5d06eb);
}
}
© 2023 Quttera Ltd. All rights reserved.