วันอังคารที่ 9 พฤษภาคม พ.ศ. 2560
ทำตัวละครไส่เกาะแล้วจะมองไม่เห็นเกาะ
หา if(PhysXTerra3WarmUp < 10)
วางข้างบน
if (CurLoadout.HeroItemID == 20240)
{
uberEquip_->SetSlot(SLOT_Backpack, (r3dMesh*)NULL);
uberEquip_->SetSlot(SLOT_Armor, (Gear*)NULL);
uberEquip_->SetSlot(SLOT_Helmet, (Gear*)NULL);
}
วันจันทร์ที่ 8 พฤษภาคม พ.ศ. 2560
ซื้อเกิเสีย GC
ALTER PROCEDURE [dbo].[WZ_CharReviveCheck]
@in_CustomerID int,
@in_CharID int
AS
BEGIN
SET NOCOUNT ON;
-- validate CharID/CustomerID pair
declare @CustomerID int = 0
select @CustomerID=CustomerID from UsersChars where CharID=@in_CharID
if(@@ROWCOUNT = 0 or @CustomerID <> @in_CustomerID) begin
select 6 as ResultCode, 'bad charid' as ResultMsg
return
end
-- change server revive time in WZ_GetAccountInfo2/WZ_Revive/WZ_ReviveCheck as well
declare @SecToRevive int
declare @Alive int = 1
select
@SecToRevive=DATEDIFF(second, GETUTCDATE(), DATEADD(minute, 20, DeathUtcTime)),
@Alive=Alive
from UsersChars where CharID=@in_CharID
-- premium accs have 10min revive time
declare @PremiumExpireTime datetime
select @PremiumExpireTime=PremiumExpireTime from UsersData where CustomerID=@in_CustomerID
if(GETDATE() < @PremiumExpireTime) begin
set @SecToRevive = @SecToRevive - 600
end
select 0 as ResultCode
-- check if we need money for revive
declare @NeedMoney int = 0
if(@SecToRevive > 61 and @Alive = 0) set @NeedMoney = 1
select @SecToRevive as 'SecToRevive', @NeedMoney as 'NeedMoney'
END
@in_CustomerID int,
@in_CharID int
AS
BEGIN
SET NOCOUNT ON;
-- validate CharID/CustomerID pair
declare @CustomerID int = 0
select @CustomerID=CustomerID from UsersChars where CharID=@in_CharID
if(@@ROWCOUNT = 0 or @CustomerID <> @in_CustomerID) begin
select 6 as ResultCode, 'bad charid' as ResultMsg
return
end
-- change server revive time in WZ_GetAccountInfo2/WZ_Revive/WZ_ReviveCheck as well
declare @SecToRevive int
declare @Alive int = 1
select
@SecToRevive=DATEDIFF(second, GETUTCDATE(), DATEADD(minute, 20, DeathUtcTime)),
@Alive=Alive
from UsersChars where CharID=@in_CharID
-- premium accs have 10min revive time
declare @PremiumExpireTime datetime
select @PremiumExpireTime=PremiumExpireTime from UsersData where CustomerID=@in_CustomerID
if(GETDATE() < @PremiumExpireTime) begin
set @SecToRevive = @SecToRevive - 600
end
select 0 as ResultCode
-- check if we need money for revive
declare @NeedMoney int = 0
if(@SecToRevive > 61 and @Alive = 0) set @NeedMoney = 1
select @SecToRevive as 'SecToRevive', @NeedMoney as 'NeedMoney'
END
สกิลกระโดดสสูงตัวละคร !
Code By AlexRedd
//-----------------------------------------------------------//
! ค้นหา ใน AI_Player.cpp !
JumpVelocity = 17;
! วางทับ !
float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity = JumpVelocityForHero;
float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity = JumpVelocityForHero;
//-----------------------------------------------------------//
! ค้นหา ใน AI_Player.cpp !
JumpVelocity = 17;
! วางทับ !
float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity = JumpVelocityForHero;
float JumpVelocityForHero = (CurLoadout.HeroItemID == 20174)?30.0f:17.0f; //AlexRedd:: superjump for hero id
JumpVelocity = JumpVelocityForHero;
ตัวละครถึก ตัวละครวิ่งไว กลั้นหายใจ
CODE ตัวละครถึก
ค้นหาใน warz_server
float obj_ServerPlayer::ApplyDamage(float damage, GameObject* fromObj, int bodyPart, STORE_CATEGORIES damageSource, uint32_t dmgItemID, bool canApplyBleeding)
เพิ่ม
if(loadout_->HeroItemID == 18701)
damage *= 0.9f;
//////////////////////////////////////////////////////////
CODE ตัวละครวิ่งไว
ค้นหาใน warz.sln
if((playerState == PLAYER_MOVE_RUN || playerState == PLAYER_MOVE_SPRINT
|| playerState == PLAYER_SWIM || playerState == PLAYER_SWIM_FAST
) && (r3dGetTime() < pl->m_SpeedBoostTime))
{
accelaration *= pl->m_SpeedBoost;
}
เพิ่ม
if(pl->CurLoadout.HeroItemID == 18701)
accelaration *= 1.1f;
/////////////////////////////////////////////////////////////
CODE กลั้นหายใจ
ค้นหาใน warz.sln
BOOL obj_Player::OnCreate()
แล้ว หา m_Breath = getMaxBreath();
ใส่เพิ่มไป if(CurLoadout.HeroItemID == 18701)
m_Breath = getMaxBreath() + 10;
else
m_Breath = getMaxBreath();
ปิด //m_Breath = getMaxBreath();
ค้นหา !InputMappingMngr->isPressed(r3dInputMappingMngr::KS_HOLD_BREATH
แทนที่ด้วย if(CurLoadout.HeroItemID == 18701)
{
if(m_Breath < getMaxBreath() + 10)
m_Breath = m_Breath + timePassed;
}
else if(m_Breath < getMaxBreath())
m_Breath = m_Breath + timePassed;
////////////////////////////////////////////////////////////
ค้นหาใน warz_server
float obj_ServerPlayer::ApplyDamage(float damage, GameObject* fromObj, int bodyPart, STORE_CATEGORIES damageSource, uint32_t dmgItemID, bool canApplyBleeding)
เพิ่ม
if(loadout_->HeroItemID == 18701)
damage *= 0.9f;
//////////////////////////////////////////////////////////
CODE ตัวละครวิ่งไว
ค้นหาใน warz.sln
if((playerState == PLAYER_MOVE_RUN || playerState == PLAYER_MOVE_SPRINT
|| playerState == PLAYER_SWIM || playerState == PLAYER_SWIM_FAST
) && (r3dGetTime() < pl->m_SpeedBoostTime))
{
accelaration *= pl->m_SpeedBoost;
}
เพิ่ม
if(pl->CurLoadout.HeroItemID == 18701)
accelaration *= 1.1f;
/////////////////////////////////////////////////////////////
CODE กลั้นหายใจ
ค้นหาใน warz.sln
BOOL obj_Player::OnCreate()
แล้ว หา m_Breath = getMaxBreath();
ใส่เพิ่มไป if(CurLoadout.HeroItemID == 18701)
m_Breath = getMaxBreath() + 10;
else
m_Breath = getMaxBreath();
ปิด //m_Breath = getMaxBreath();
ค้นหา !InputMappingMngr->isPressed(r3dInputMappingMngr::KS_HOLD_BREATH
แทนที่ด้วย if(CurLoadout.HeroItemID == 18701)
{
if(m_Breath < getMaxBreath() + 10)
m_Breath = m_Breath + timePassed;
}
else if(m_Breath < getMaxBreath())
m_Breath = m_Breath + timePassed;
////////////////////////////////////////////////////////////
สมัครสมาชิก:
บทความ (Atom)