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

Fake Lampa 2.6 b1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff       
Nightfall1
Senior Member
Join Date: Aug 2008
Old 12-25-2010 , 11:04   Fake Lampa 2.6 b1
Reply With Quote #1


- Improved the Light on the dark map -


Description
  • Autor: Night Dreamer - (Nightfall1)
  • Release Day: 16/06/2011
  • Version: 2.6 b1
  • Info: Improved the Light on the dark map
Cvar's
fake_lampa_max " " //Who many lamap you can put per map default "5"


fake_lampa_dmg " " //Lampa take dmg ? 1 yes, 0 no default 1
FK_RADIUS " " //value default "20"
FK_COLOR_R " " //value default "102"
FK_COLOR_G " " //value default "89"
FK_COLOR_B " " //value default "87"


Who to enable grab on fake lampa uncomment//#define WG_SUPPORT Delete "//"
You can add hamsandwich accuracy on fake lampa uncomment//#define WR_HAM Delete "//"
NEW UPDATE WILL BE RELASE SOON

Changelog's
  • 1.0 UP first release
  • 2.3 BIG UPDATE FIX MENU + added customize radius color + added engine +better save system + optimization added
  • 2.4 FIX NON Admin Remove all the fake lampa and use grab + Change admin_cvar with admin_kick, plugin optimization
  • 2.5 Remove fm_get_aim_origin also cache point_content TNXC TO: ConnorMcLeod, added limitation of lampa's also added cvar that lampa can take dmg
  • 2.6 Added fakelampa touch + WR_HAM for ham hooks instead using engine
Attached Files
File Type: zip fakelampa-2.6_b1.zip (160.5 KB, 187 views)
File Type: sma Get Plugin or Get Source (fake_lampa2.6_b1.sma - 583 views - 19.9 KB)
__________________
SIGNATURE

Last edited by Nightfall1; 06-16-2011 at 06:59.
Nightfall1 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-25-2010 , 11:37   Re: Fake Lampa 2.3
Reply With Quote #2

Difference to lazarevs light creater?
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-25-2010 , 15:52   Re: Fake Lampa 2.3
Reply With Quote #3

Please attach the sma separately.
__________________
Arkshine is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-26-2010 , 22:17   Re: Fake Lampa 2.3
Reply With Quote #4

Quote:
Originally Posted by bibu View Post
Difference to lazarevs light creater?
It's a fucking lamp. What ISN'T different?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2010 , 06:05   Re: Fake Lampa 2.3
Reply With Quote #5

Pre-review :
  • Don't use static when absolutely not justified (like in plugin_cfg for example)
  • Use properly register_clcmd and register_concmd
  • Use precache_model instead of EngFunc_PrecacheModel
  • Don't use inconsistent returns
  • Destroy non-global menus, or make the menu global.
    If you keep the menu not global, then don't make the menu index variable globale, it can allow some issues if 2 players use the menu.
  • Use get_user_origin instead of fm_get_aim_origin
  • Avoid stupid code
    Code:
        marfa[0] = fAngles[0] - fAngles[0]
  • Remove stock label from private functions
  • Fix indentation
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Nightfall1
Senior Member
Join Date: Aug 2008
Old 12-29-2010 , 11:43   Re: Fake Lampa 2.3
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
Pre-review :
  • Don't use static when absolutely not justified (like in plugin_cfg for example)
  • Use properly register_clcmd and register_concmd
  • Use precache_model instead of EngFunc_PrecacheModel
  • Don't use inconsistent returns
  • Destroy non-global menus, or make the menu global.
    If you keep the menu not global, then don't make the menu index variable globale, it can allow some issues if 2 players use the menu.
  • Use get_user_origin instead of fm_get_aim_origin
  • Avoid stupid code

    Code:

        marfa[0] = fAngles[0] - fAngles[0]

  • Remove stock label from private functions
  • Fix indentation
  • What do you mean with "Use properly register_clcmd and register_concmd"
  • Why precache_model ?
  • "Don't use inconsistent returns" Example?... what does all this return's mean?
  • "Destroy non-global menus, ....."I do not understand what you mean by that
  • i don't want to use get_user_origin
  • This
    marfa[0] = fAngles[0] - fAngles[0] // = 0 is 0
  • What indentation?

New Version Coming Soon
__________________
SIGNATURE
Nightfall1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-29-2010 , 11:52   Re: Fake Lampa 2.3
Reply With Quote #7

- i mean don't mess up client commands and console commands.
+grab shouldn't be used from server console.

- because it is the appropriated native, even if the one use used do the same, you used both of them, it's inconsistent.

- i mean don't use fakameta returns in other places than fakemeta hooks, and don't use default amxx returns in fakemeta hooks.

- that's not my job to learn you how to use menu, by releasing a plugin using new menu system you assume that you know how to use it. See tutorials section.

- this fm_get_aim_origin is not justified

- Yes, this is stupid, just set it to 0, or don't even set it if it's already equal to 0

- ...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-07-2011 , 01:41   Re: Fake Lampa 2.4
Reply With Quote #8

Still fm_get_aim_origin remaining, use get_user_origin + IVecFVec would be more efficient.
Also cache point_content result.

new Float:cool[3],Float:marfa[3]
Those 2 arrays are not needed, you can directly you aim origin and angles arrays.


You could consider creating menus such as g_FKlen only once at plugin_init, then you don't need to destroy it, if you still destroy it each time, there is no point in using a global var.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-25-2011 , 17:25   Re: Fake Lampa 2.4
Reply With Quote #9

No changes, unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Nightfall1
Senior Member
Join Date: Aug 2008
Old 04-17-2011 , 12:29   Re: Fake Lampa 2.4
Reply With Quote #10

Tnx for advices ConnorMcLeod
__________________
SIGNATURE
Nightfall1 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 02:20.


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