Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local str = [[function(CanDrop)
- lua->Push(self->CanDrop());
- return 1;
- end
- function(CanSelect)
- lua->Push(self->CanSelect());
- return 1;
- end
- function(CheckAmmoRestrictions)
- lua->Push(self->CheckAmmoRestrictions(lua->GetEntity(2)->GetId()));
- return 1;
- end
- function(Cloak)
- self->Cloak(lua->ToBoolean(2));
- return 0;
- end
- function(Drop)
- self->Drop();
- return 0;
- end
- function(EnableAnimations)
- self->EnableAnimations(lua->ToBoolean(2));
- return 0;
- end
- function(EnableSelect)
- self->EnableSelect(lua->ToBoolean(2));
- return 0;
- end
- function(EnableSound)
- self->EnableSound(lua->ToBoolean(2));
- return 0;
- end
- function(EnterWater)
- self->EnterWater(lua->ToBoolean(2));
- return 0;
- end
- function(GetDualWieldMaster)
- Push(self->GetDualWieldMaster());
- return 1;
- end
- function(GetDualWieldSlave)
- Push(self->GetDualWieldSlave());
- return 1;
- end
- function(GetEntity)
- lua->Push(self->GetEntity());
- return 1;
- end
- function(GetWeapon)
- lua->Push(self->GetIWeapon());
- return 1;
- end
- function(GetMountedAngleLimits)
- lua->Push(self->GetMountedAngleLimits());
- return 1;
- end
- function(GetMountedDir)
- lua->Push(self->GetMountedDir());
- return 1;
- end
- function(GetOwner)
- lua->Push(gEnv->pGame->GetIGameFramework()->GetIActorSystem()->GetActor(self->GetOwnerId()););
- return 1;
- end
- function(Impulse)
- self->Impulse(lua->CheckVec3(2), lua->CheckVec3(2), 1);
- return 0;
- end
- function(IsAmmoPickup)
- lua->Push(self->IsAmmoPickup());
- return 1;
- end
- function(IsBusy)
- lua->Push(self->IsBusy());
- return 1;
- end
- function(IsDualWield)
- lua->Push(self->IsDualWield());
- return 1;
- end
- function(IsDualWieldMaster)
- lua->Push(self->IsDualWieldMaster());
- return 1;
- end
- function(IsDualWieldSlave)
- lua->Push(self->IsDualWieldSlave());
- return 1;
- end
- function(IsMountable)
- lua->Push(self->IsMountable());
- return 1;
- end
- function(IsSoundEnabled)
- lua->Push(self->IsSoundEnabled());
- return 1;
- end
- function(IsTwoHand)
- lua->Push(self->IsTwoHand());
- return 1;
- end
- function(MountAt)
- self->MountAt(lua->CheckVec3(2));
- return 0;
- end
- function(MountAtEntity)
- self->MountAtEntity(lua->GetEntity(2)->GetId(), lua->CheckVec3(3), lua->CheckAng3(4));
- return 0;
- end
- function(SetBusy)
- self->SetBusy(lua->ToBoolean(2));
- return 0;
- end
- function(SetChannelId)
- self->SetChannelId(lua->CheckInteger(2));
- return 0;
- end
- function(SetDualSlaveAccessory)
- self->SetDualSlaveAccessory(lua->ToBoolean(2));
- return 0;
- end
- function(SetDualWieldMaster)
- self->SetDualWieldMaster(lua->GetEntity(2)->GetId());
- return 0;
- end
- function(SetDualWieldSlave)
- self->SetDualWieldSlave(lua->GetEntity(2)->GetId());
- return 0;
- end
- function(SetHand)
- self->SetHand(lua->CheckInteger(2));
- return 0;
- end
- function(SetOwnerId)
- self->SetOwnerId(lua->CheckActor(2)->GetEntityId());
- return 0;
- end
- function(StartUse)
- self->StartUse(lua->CheckActor(2)->GetEntityId());
- return 0;
- end
- function(StopUse)
- self->StopUse(lua->CheckActor(2)->GetEntityId());
- return 0;
- end
- function(SupportsDualWield)
- lua->Push(self->SupportsDualWield(lua->CheckString(2)));
- return 1;
- end
- function(TakeAccessories)
- self->TakeAccessories(lua->GetEntity(2)->GetId());
- return 0;
- end]]
- for _, line in pairs(str:Split"\n") do
- if line:find("function") then
- print(line:gsub("function", "REG") .. ";")
- end
- end
Add Comment
Please, Sign In to add comment