1
This commit is contained in:
parent
3d0e1e02a2
commit
8abeb7f234
@ -751,6 +751,7 @@ void BattleDataContext::Init(Creature* c)
|
||||
skin->skin_id = item_meta->skinid();
|
||||
}
|
||||
}
|
||||
c->NetInitOk();
|
||||
}
|
||||
|
||||
void BattleDataContext::GetSkillList(std::vector<int>& skill_list)
|
||||
|
@ -66,7 +66,6 @@ Creature::Creature():MoveableEntity()
|
||||
inventory_[IS_1XSCOPE].num = 1;
|
||||
movement_ = std::make_shared<Movement>(this);
|
||||
gun_grasp_ = std::make_shared<GunGrasp>(this);
|
||||
gun_grasp_->Init();
|
||||
}
|
||||
|
||||
Creature::~Creature()
|
||||
@ -3021,3 +3020,8 @@ float Creature::GetSkillRaycastDistance()
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Creature::NetInitOk()
|
||||
{
|
||||
gun_grasp_->Init();
|
||||
}
|
||||
|
@ -330,6 +330,7 @@ class Creature : public MoveableEntity
|
||||
void UnSetBuffTag(int tag);
|
||||
void ShortFindPath();
|
||||
float GetSkillRaycastDistance();
|
||||
virtual void NetInitOk();
|
||||
|
||||
protected:
|
||||
virtual void OnBuffRemove(Buff& buff);
|
||||
|
Loading…
x
Reference in New Issue
Block a user