AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ZM + WAR3 (Help) (https://forums.alliedmods.net/showthread.php?t=154904)

Podarok 04-15-2011 00:23

ZM + WAR3 (Help)
 
2 Attachment(s)
Hello everybody, i have problem with these mods to get work together, problem are on team changing, war3:ft use default get_user_team function, but Zombie Plague fm_cs_get_user_team which are custom, i have changed default function from get_user_team to cs_get_user_team, a situation are better but not good enough, only part of team kills are fixed, now team kills are after round end when zombie plague mod again changes teams to block infecting, killing... So please help me to get these mods work together correctly! And there also are some bugs with ZP hardmoded move speed and gravity, that actualy dont work, i mean war3 skills, items, abilities, because humans and zombies have gravity and move speed limit! In attachments i have added WAR3:FT and Zombie Plague mods! I hope i got help

Podarok 05-03-2011 07:50

Re: ZM + WAR3 (Help)
 
Ok, this theme should be the one which isnt trashed! So Guys, can you help me changing default get_user_team function to cs_get_user_team! I have changed into main plugin war3ft.sma get_user_team ( id, szTeam, 15 ) to cs_get_user_team ( id ) and that was ok! But there are some other files in my attached files (war3ft_v3.0rc13.zip) scripting/war3ft/ inl files! There I have no idea how to change from get_user_team to cs_get_user_team! HELP PLEASE!

HBxander 05-03-2011 09:29

Re: ZM + WAR3 (Help)
 
You cant in an inl file because it doesnt load from other inl files

E: I have asked about that bfore but you cant. else the ppl i asked was stupid but .. :b

Podarok 05-03-2011 09:59

Re: ZM + WAR3 (Help)
 
No I can! And I dont understand what you mean :D!

jc980 05-03-2011 10:02

Re: ZM + WAR3 (Help)
 
Quote:

Originally Posted by Podarok (Post 1462508)
No I can! And I dont understand what you mean :D!

can you not understand WHAT he said? this is not a laughing matter!

Do I have to rephrase it for you?

Quote:

He Have Asked About That Before But You Can't Do It.

Podarok 05-03-2011 12:41

Re: ZM + WAR3 (Help)
 
Ok, thanks! But Really I can do it! I know, I have seen it on the other server. So the problem is that I don't know how to change it, the only thing I know how to
Code:

get_user_team ( id, szTeam, 15 ) to cs_get_user_team ( id )
But I have no idea how to change harder constructions for example :
Code:

if ( iTeam == get_user_team( players[i] ) )

drekes 05-03-2011 12:52

Re: ZM + WAR3 (Help)
 
Quote:

Originally Posted by Podarok (Post 1462584)
Ok, thanks! But Really I can do it! I know, I have seen it on the other server. So the problem is that I don't know how to change it, the only thing I know how to
Code:

get_user_team ( id, szTeam, 15 ) to cs_get_user_team ( id )
But I have no idea how to change harder constructions for example :
Code:

if ( iTeam == get_user_team( players[i] ) )

It's pretty easy.

PHP Code:

new iTeam
 
if ( iTeam == get_user_teamplayers[i] ) ) 

:arrow:
PHP Code:

new CsTeamsiTeam;
if(
iTeam == cs_get_user_team(players[i])) 

You have to change iTeam to avoid getting a tag mismatch during compilation

Podarok 05-03-2011 13:15

Re: ZM + WAR3 (Help)
 
2 Attachment(s)
Ok, I have changed it, plugin compiled succesfully but there was one warning! Have I correctly corrected it ? :) Please take a look! I cant upload .inl file , so I uploaded the .txt copy of it and my corrected .sma file!

drekes 05-03-2011 14:28

Re: ZM + WAR3 (Help)
 
I have looked into the source now and it seems like a lot of work to make it cs only.
I recommend you to try this plugin: http://forums.alliedmods.net/showthread.php?t=137996

Podarok 05-03-2011 14:54

Re: ZM + WAR3 (Help)
 
Thanks, but it is not working :( Anyway, please, can you help me?


All times are GMT -4. The time now is 19:58.

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