UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: gympie6 on March 28, 2021, 09:06:55 pm

Title: Moon Gravity
Post by: gympie6 on March 28, 2021, 09:06:55 pm
(https://steamuserimages-a.akamaihd.net/ugc/1734423033470426712/23EF61BBD9F32333EEE9CF6E93F2AA9EFE76A3F2/)

Do you like the gravity as you can see in this screenshot? I am here with the tutorial!
Openup _zombiemode and search for this:

onPlayerConnect_clientDvars
you will see this:

self SetClientDvars( "cg_deadChatWithDead", "1",
        "cg_deadChatWithTeam", "1",
        "cg_deadHearTeamLiving", "1",
        "cg_deadHearAllLiving", "1",
        "cg_everyoneHearsEveryone", "1",
        "compass", "0",
        "hud_showStance", "0",
        "cg_thirdPerson", "0",
        "cg_fov", "65",
        "cg_thirdPersonAngle", "0",
        "ammoCounterHide", "0",
        "miniscoreboardhide", "0",
        "ui_hud_hardcore", "0" );

change it to this:

self SetClientDvars( "cg_deadChatWithDead", "1",
        "cg_deadChatWithTeam", "1",
        "cg_deadHearTeamLiving", "1",
        "cg_deadHearAllLiving", "1",
        "cg_everyoneHearsEveryone", "1",
        "compass", "0",
        // gravity
        "phys_gravity", "0", // Zombie gravity
        "g_gravity", "80", // Player gravity
        "ragdoll_max_life", "500000", // Life time of dead bodies flying around in the air in milliseconds
        // gravity
        "hud_showStance", "0",
        "cg_thirdPerson", "0",
        "cg_fov", "65",
        "cg_thirdPersonAngle", "0",
        "ammoCounterHide", "0",
        "miniscoreboardhide", "0",
        "ui_hud_hardcore", "0" );

After you changed that, build the mod and you're done! :)
Have fun testing! (If this tutorial is already on the forum you have my sorry)
Title: Re: Moon Gravity
Post by: klevi on May 09, 2021, 10:48:16 am
No i don't like the gravity shown in your screenshot. I am not impressed btw!
Title: Re: Moon Gravity
Post by: gympie6 on May 09, 2021, 10:50:45 am
No i don't like the gravity shown in your screenshot. I am not impressed btw!
 Jokes on you! :D
Title: Re: Moon Gravity
Post by: klevi on May 10, 2021, 08:47:05 pm
Jokes on you! :D
 What is?