Raised This Month: $51 Target: $400
 12% 

Help with Zombie Plague + War3FT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gooday
Junior Member
Join Date: Jan 2024
Old 01-22-2024 , 07:12   Help with Zombie Plague + War3FT
Reply With Quote #1

Hello everyone. I download:
https://forums.alliedmods.net/showthread.php?t=279404 - Zombie Plague
http://wc3mods.net/forums/viewtopic....1d9091bc2643f7 - War3FT

Those mods works great, but my problem is:
For Example you choose Undead(class from war3ft which has low gravity)
Everything starts great, but when on the next round gravity doesn't work.
I understand that in Zombie_plague4.0.sma is a stroke which reset gravity every round, but I tried everything, delete those variables, comment them, nothing changed.
The only solution I have is to make a script which gonna propose choosing war3ft race(/changerace) on every round(I'm not sure how to create it yet but it has to work). BUT I would rather make it work without choosing every round.
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 24 views - 344.0 KB)
Gooday is offline
101
Member
Join Date: Nov 2023
Old 01-23-2024 , 00:54   Re: Help with Zombie Plague + War3FT
Reply With Quote #2

Go to the one that u want to disable its gravity functions and search inside for lines than contains pev_gravity using Ctrl+F and remove all their components . and If u don't know how then replace the sentence by a logical operation line such as 5; Or 5>3; , then compile it and neglect the warnings "Its Ok" .

Or try to set the gravity cvars Value to be the same wanted value in both plugins .

Last edited by 101; 01-23-2024 at 00:55.
101 is offline
Gooday
Junior Member
Join Date: Jan 2024
Old 01-23-2024 , 05:46   Re: Help with Zombie Plague + War3FT
Reply With Quote #3

Quote:
Originally Posted by 101 View Post
Go to the one that u want to disable its gravity functions and search inside for lines than contains pev_gravity using Ctrl+F and remove all their components . and If u don't know how then replace the sentence by a logical operation line such as 5; Or 5>3; , then compile it and neglect the warnings "Its Ok" .
for example I have line

// Set gravity, if frozen set the restore gravity value instead
if (!g_frozen[id]) set_pev(id, pev_gravity, get_pcvar_float(cvar_nemgravity))
else g_frozen_gravity[id] = get_pcvar_float(cvar_nemgravity)


I should make something like ?

// Set gravity, if frozen set the restore gravity value instead
if (5>3) set_pev(id, pev_gravity, get_pcvar_float(cvar_nemgravity))
else g_frozen_gravity[id] = get_pcvar_float(cvar_nemgravity)
Gooday is offline
101
Member
Join Date: Nov 2023
Old 01-23-2024 , 06:15   Re: Help with Zombie Plague + War3FT
Reply With Quote #4

I mean Replace any sentence that starts from pev or set_pev and contains pev_gravity .
it looks like this :
Code:
set_pev(id, pev_gravity, get_pcvar_float(cvar_nemgravity))
So, Change this :
PHP Code:
// Set gravity, if frozen set the restore gravity value instead
if (!g_frozen[id]) set_pev(idpev_gravityget_pcvar_float(cvar_nemgravity))
else 
g_frozen_gravity[id] = get_pcvar_float(cvar_nemgravity
to This :
PHP Code:
// Set gravity, if frozen set the restore gravity value instead
if (!g_frozen[id]) 5;
else 
g_frozen_gravity[id] = get_pcvar_float(cvar_nemgravity
If it doesn't work , try to compile the file below :
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 14 views - 344.0 KB)

Last edited by 101; 01-23-2024 at 06:34.
101 is offline
Gooday
Junior Member
Join Date: Jan 2024
Old 01-23-2024 , 06:28   Re: Help with Zombie Plague + War3FT
Reply With Quote #5

Thank for the help I just commented all the functions for only humans 'cause I want to keep zm classes gravity changes. Also thanks to great code comments on this mod, I hope it won't kick my ass with bugs in the future . Have a good day.
Gooday is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:50.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode