Raised This Month: $32 Target: $400
 8% 

[FreezeTag Mod]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
FrOZeN F1rE
Junior Member
Join Date: Mar 2014
Location: Reality..!!
Old 10-07-2014 , 12:07   [FreezeTag Mod]
Reply With Quote #1

FreezeTag Mod
Mod Originally By Javavi

Description
It Is A Very Simple And Fun Mod.
The CT's Have 3 Minutes(You Can Change This)
The Terrorists have to run from CT's in order to stay alive.
The CT's - When CT's Touch The T's , The T's Freeze!
The T's - T's Can Unfreeze Their Teamates By Touching Them..!
There Are Basically 2 Shops in this mod..
For CT's and Other For T's

Client Commands:
PHP Code:
/status
/shop 
Edits:
PHP Code:
Added Shop.
Fixed Minor Bugs.
Added No Fall Damage Credits v3x
Shop Items Help 
:- Eagle07 :
Credits:
PHP Code:
Javavi :// The Mod Idea And The Original Code
Eagle07 :) // Shop and Other Bug Helps :wink: 
Note:
PHP Code:
This mod is originally made by Javavi 
I just edited it as some players suggested.
Mod is Just For Fun!
Any Suggestions and any Bug Reports may be appriciated :
Thanks Everyone 
:)
Online Compiler Is Not Working..
Compile It Yourself 
Attached Files
File Type: zip FreezeTagMod.zip (72.4 KB, 262 views)
File Type: inc ColorChat.inc (2.5 KB, 270 views)
File Type: inc dhudmessage.inc (3.4 KB, 264 views)
File Type: sma Get Plugin or Get Source (freezetag.sma - 952 views - 46.6 KB)
__________________

FreezeTag Mod + Shop + Items!
Need Some Help !!!! Please PM me

Last edited by FrOZeN F1rE; 10-08-2014 at 05:10.
FrOZeN F1rE is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-07-2014 , 12:13   Re: [FreezeTag Mod]
Reply With Quote #2

Remove the AMXX file from the archive
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
FrOZeN F1rE
Junior Member
Join Date: Mar 2014
Location: Reality..!!
Old 10-07-2014 , 12:13   Re: [FreezeTag Mod]
Reply With Quote #3

Ohkay... Done ~My First Post
__________________

FreezeTag Mod + Shop + Items!
Need Some Help !!!! Please PM me

Last edited by FrOZeN F1rE; 10-07-2014 at 12:15.
FrOZeN F1rE is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-07-2014 , 12:25   Re: [FreezeTag Mod]
Reply With Quote #4

Some improvements:
  • Don't use fakemeta_util.
  • V3x no fall damage plugin is old and badly coded, now you have Ham_TakeDamage. Check fo DMG_FALL and block the damage.
  • Don't use ResetHud for spawn, use Ham_Spawn.
  • In Spawn_2 you are creating a permanent task, at 0.5 seconds, this is a bad way. Use set_task with flag b.
  • dhud doesn't have channels, if your hud is updated too fast, it will get bugged.
  • get_user_godmode(id), set_user_godmode(id, 1) for what are you using this ? It doesn't make sense.
  • In fw_Touch why some variables are static and some with new ? This seems to be a copy-paste.
  • for ( new id = 1; id <= g_maxplayers; id++ ) don't create a for loop like this. Use get_players
  • I'm almost sure that the code from msg_statusicon is not yours, it seems to be connor's code.
  • Indent your code.
  • In an if- else structure: in the if case, you don't need to return plugin_handled, it will not go to else, if the condition is true.
  • A lot of code is simply copy-paste, what do you really coded ?

There are much more things that can be done better or in another way, but I don't have time to check more.
__________________

Last edited by HamletEagle; 10-07-2014 at 12:34.
HamletEagle is offline
FrOZeN F1rE
Junior Member
Join Date: Mar 2014
Location: Reality..!!
Old 10-07-2014 , 12:32   Re: [FreezeTag Mod]
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Some improvements:
  • Don't use fakemeta_util.
  • V3x no fall damage plugin is old and badly coded, now you have Ham_TakeDamage. Check fo DMG_FALL and block the damage.
  • Don't use ResetHud for spawn, use Ham_Spawn.
  • In Spawn_2 you are creating a permanent task, at 0.5 seconds, this is a bad way. Use set_task with flag b.
  • dhud doesn't have channels, if your hud is updated too fast, it will get bugged.
  • get_user_godmode(id), set_user_godmode(id, 1) for what are you using this ? It doesn't make sense.
  • In fw_Touch why some variables are static and some with new ? This seems to be a copy-paste.
  • for ( new id = 1; id <= g_maxplayers; id++ ) don't create a for loop like this. Use get_players
  • I'm almost sure that the code from msg_statusicon is not yours, it seems to be connor's code.
  • Indent your code.
  • In an if- else structure: in the if case, you don't need to return plugin_handled, it will not go to else, if the condition is true.
  • A lot of code is simply copy-paste, what do you really coded ?

There are much more things that can be done better or in another way, but I don't have time to check more.
Thanks For Opinion:
I'll Look Through it
N yes I have Copy-Pasted Some Codes ...
And I'll remove all the useless codes
Thank You .
__________________

FreezeTag Mod + Shop + Items!
Need Some Help !!!! Please PM me
FrOZeN F1rE is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 10-10-2014 , 01:45   Re: [FreezeTag Mod]
Reply With Quote #6

PHP Code:
L 10/10/2014 09:42:02Start of error session.
L 10/10/2014 09:42:02Info (map "hns_fantazy") (file "addons/amxmodx/logs/error_20141010.log")
L 10/10/2014 09:42:02: Function is not present (function "advertise_ii") (plugin "freezetag-new.amxx")
L 10/10/2014 09:42:02: [AMXXDisplaying debug trace (plugin "freezetag-new.amxx"version "2")
L 10/10/2014 09:42:02: [AMXXRun time error 10native error (native "set_task")
L 10/10/2014 09:42:02: [AMXX]    [0freezetag-new.sma::advertise_i (line 316
__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
5aloOod is offline
bsparty
Member
Join Date: Sep 2014
Location: India
Old 10-11-2014 , 07:06   Re: [FreezeTag Mod]
Reply With Quote #7

Nice Mod
Will Surely try !
bsparty is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 10-12-2014 , 15:27   Re: [FreezeTag Mod]
Reply With Quote #8

Some Questions ;

- How teams are changing ? (By random ? Per round?)

My Suggestions ;

- Mix Teams Every Round.
DonKisgot is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-13-2014 , 09:14   Re: [FreezeTag Mod]
Reply With Quote #9

More in deep:
  • Don't write string size manually, use charsmax.
  • Use pcvars.
  • You are registering a cvar with an empty string, then you get it into a string and check if it's 0. It's obvious that it will be like that, you should double check what you are doing.
  • Use formatex, not format.
  • When removing the ents, you may want to check if that ent is valid with pev_valid.
  • If you block chooseteam cmd, block jointeam too.
  • You have the b flag for looping a task, use it.
  • Why you are removing ents in two places ? Just remove them with the same loop.
  • Use get_players, you have flags to filter alive/dead players and much more.
  • I would advise you to use offset names, 235 is m_fMapZones if I'm not wrong.
  • Why you are switching when using only 1 case ?
  • In death_event you don't need to create a var only for using it one time, write read_data directly.
  • Why you are using FM's player pretink and engine one too ? Stick to one of them.
  • In your case, you don't need to use the menu info param, so you will avoid some native calls( menu_item_getinfo )

Please try to do some of what I wrote to you, it may help you improve this plugin
__________________

Last edited by HamletEagle; 10-13-2014 at 09:15.
HamletEagle is offline
FrOZeN F1rE
Junior Member
Join Date: Mar 2014
Location: Reality..!!
Old 10-14-2014 , 06:41   Re: [FreezeTag Mod]
Reply With Quote #10

Quote:
Originally Posted by DonKisgot View Post
Some Questions ;

- How teams are changing ? (By random ? Per round?)

My Suggestions ;

- Mix Teams Every Round.
Bro, The Teams Change When One Team Defeats The Other ..
That Is - When CT's Freeze All The T's, Then The Round Ends and The CT's Become T's and Vice-Versa..
If The CT's Fail to do so, No Team Change
__________________

FreezeTag Mod + Shop + Items!
Need Some Help !!!! Please PM me
FrOZeN F1rE 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 12:10.


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