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

UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2015)


Post New Thread Reply   
 
Thread Tools Display Modes
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 03-23-2015 , 01:48   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #21

Quote:
Originally Posted by hornet View Post
Okay, at the moment this is the brief / quick review ( mainly let's start with how to not blow up your CPU ):
  • All CPU consuming forwards such as AddToFullPack, PreThink, and CmdStart should be registered only when they are in use, and unregistered when they are not.
  • FM_Touch is a big nono . Use hamsandwich to detect touch and then like above, disable the forward when its not in use.
  • Disable all other Touch forwards when they are not in use.
  • You only use SetModel forward for Last Request purposes, so you should only have it registered during that time.
  • Filter your CurWeapon event to only be triggered on knife deploy or hook Deploy with hamsandwich.
  • To catch players text in chat you should instead register SayText message, but only when it your going to use it and then unregister it.
  • To get the friendly fire effect in FFA, you only need to change player private data in TraceAttack, not TakeDamage aswell. You also should not need to do that in Killed forward either.
  • You should use a multilingual file since JailBreak is popular world wide.
  • When setting render FX on a player or other entity you should 100% be using engine module to do so instead of fakemeta.
  • You have a stock called PlaySound() but you still use client_cmd() elsewhere.
  • You have a macro for is_user() but you still use its defined code elsewere.
  • You include xs but you have made your own macros for some of its functionality.
  • You don't need to check is_user() in SetClientListening forward since you are also checking for player connected.
  • All of your player and entity private data offsets should be defined for easy reading . example 116 instead define m_fHasPrimary.
  • Do not hardcode string lengths or other array lengths for that matter.

I don't think hardcoded models, sounds or other resources should be a problem since they are part of the mod, so long as they can be changed globally. It would be customizable of course to use a config file or something, but not required.

So for now, that's just the main ones I've noticed. Further down the track we'll explore all of your other functions and systems etc.

And lastly I very highly recommend you make this compatible with 1.8.2 compiler.
Will do so.

For /open to work, you have to go to the cell doors button and look at it. Then type amx_set_button.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 03-23-2015 , 02:45   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #22

I think you should make each functionality to seperate file because it will be easier to disable, test and work for yourself. That would also force you to make an API and that will also make it possible to add custom plugins, like that blackjack, without HARDLY editing it or including it in main plugin.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
GhostMan
Senior Member
Join Date: Jun 2012
Old 03-23-2015 , 08:42   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #23

Looks nice.
__________________
Hi.
GhostMan is offline
happy_2012
Senior Member
Join Date: Aug 2012
Old 03-23-2015 , 10:32   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #24

Quote:
Originally Posted by GuskiS View Post
I think you should make each functionality to seperate file because it will be easier to disable, test and work for yourself. That would also force you to make an API and that will also make it possible to add custom plugins, like that blackjack, without HARDLY editing it or including it in main plugin.
An API module JB mod is highly recommended, I would agree with you
happy_2012 is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 03-23-2015 , 11:34   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #25

looks good ^^.
um I have an idea for you

Add to battle LR
Bazookas with a model (click on button you will zoom intention then you will be able the fire(rocket) bazooka) to player

change the HE Grenade to Fire on floor.

Last edited by Fuck For Fun; 03-23-2015 at 11:34.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
hgavdv
Junior Member
Join Date: Mar 2015
Old 03-23-2015 , 17:27   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #26

there is problem if we were 3

and if i do amx_cvar sv_restart 1 or Round 2 starts

one of us will get auto-Transfer to CT ( Even if he got banned from CT or He Didn't Pass the CT time )

because 3:T 0:CT

and i am using UltimatePlugin if i do amx_revive T's get Glock

and Ball mode any CT can abuse it

EDIT : auto-transfer Fixed by mp_autoteambalance 0

Last edited by hgavdv; 03-23-2015 at 17:34.
hgavdv is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 03-23-2015 , 18:15   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #27

Quote:
Originally Posted by hgavdv View Post
there is problem if we were 3

and if i do amx_cvar sv_restart 1 or Round 2 starts

one of us will get auto-Transfer to CT ( Even if he got banned from CT or He Didn't Pass the CT time )

because 3:T 0:CT

and i am using UltimatePlugin if i do amx_revive T's get Glock

and Ball mode any CT can abuse it

EDIT : auto-transfer Fixed by mp_autoteambalance 0
In UltimatePlugin, you can disable giving weapons when reviving.
The ball is supposed to be used by everyone not only Prisoners.

Couldn't upload the code to github yet. Tomorrow for sure I will do so.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]

Last edited by tonykaram1993; 03-23-2015 at 18:15.
tonykaram1993 is offline
hgavdv
Junior Member
Join Date: Mar 2015
Old 03-23-2015 , 18:56   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #28

Quote:
Originally Posted by tonykaram1993 View Post
In UltimatePlugin, you can disable giving weapons when reviving.
The ball is supposed to be used by everyone not only Prisoners.

Couldn't upload the code to github yet. Tomorrow for sure I will do so.
Can you give me command to disable Glock

and The ball i want make access Flag because everyone can abuse it
hgavdv is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 03-24-2015 , 06:52   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #29

Code has been uploaded to GitHub, check it here.

All updates will be there as a form of commits. I will probably not post here everytime I make an update. I will not update the code here on this forums until I feel it's ready.
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
happy_2012
Senior Member
Join Date: Aug 2012
Old 03-24-2015 , 08:51   Re: UltimateJailBreak v0.1.2b [Days + LR + Shop + VIP + Commander + ..] (21st March 2
Reply With Quote #30

What is so new in UltimateJailBreak_New?
happy_2012 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 06:01.


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