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

Smoke Grenade Features (anti 16bit)


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-25-2009 , 06:21   Re: Smoke Greande Features
Reply With Quote #21

Quote:
Originally Posted by MPNumB View Post
Nice idea. Renamed. Only "Anti" with small 'a'. )


Make a poll to know if users would prefer 'a' or 'A'
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Trafalete
Senior Member
Join Date: Sep 2008
Location: Bucuresti ( Printre nori
Old 10-25-2009 , 06:23   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #22

great and verry usefull plugin...i'm gonna promote this plugin to every server owner i know of
__________________


Trafalete is offline
Asran
Member
Join Date: Aug 2007
Location: France
Old 10-25-2009 , 06:30   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #23

Hi,

I still have the svc bad error.

Thx
__________________
Asran is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-25-2009 , 07:26   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #24

Updated to 1.2
Fixed: svc_bad errors.

Quote:
Originally Posted by Asran View Post
hi,

nice idea and I saw this one: sgren_features_svcbad
What is this version for, I guess it was because some servers have this error and is there something else?

Thx
Some servers are really laggy, and get svc_bad errors what kicks most or all of the players.

Quote:
Originally Posted by Asran View Post
Hi,

I still have the svc bad error.

Thx
Done my best. Try it out. If even it wont work - I will make an extra version for extremely laggy servers (that will take me much more time, cause I will need a guy who makes sprites).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 10-25-2009 at 07:29.
MPNumB is offline
Send a message via Skype™ to MPNumB
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 10-25-2009 , 07:35   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #25

Suggestions:

Use offset scripting:
PHP Code:
#define OFFSET_GREN_WEAPON_ID 41
#define EXTRAOFFSET_GREN_LINUX 5
set_pdata_int(grenadeOFFSET_GREN_WEAPON_IDCSW_SMOKEGRENADEEXTRAOFFSET_GREN_LINUX)  // setmodel use ;)

stock is_grenade_smoke(ent)
{
 return (
get_pdata_int(entOFFSET_GREN_WEAPON_IDEXTRAOFFSET_GREN_LINUX) == CSW_SMOKEGRENADE)

You can also use offsets for checking if the nade has exploded.

Register the setmodel as post (it will be compatible with plugins that alter the model)
PHP Code:
    register_forward(FM_SetModel"FM_SetModel_Post"1); 
Use get_gametime(), more efficient
PHP Code:
//global_get(glb_time, s_fGameTime)
s_fGameTime get_gametime() 
Use angle_vector(), less arguments => more efficient.
PHP Code:
    //        engfunc(EngFunc_MakeVectors, s_fEndOrigin);
//            global_get(glb_v_forward, s_fEndOrigin);
angle_vector(s_fEndOriginANGLEVECTOR_FORWARDs_fEndOrigin
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-25-2009 at 07:37.
ot_207 is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-25-2009 , 08:00   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #26

Quote:
Originally Posted by ot_207 View Post
Suggestions:

Use offset scripting:
PHP Code:
#define OFFSET_GREN_WEAPON_ID 41
#define EXTRAOFFSET_GREN_LINUX 5
set_pdata_int(grenadeOFFSET_GREN_WEAPON_IDCSW_SMOKEGRENADEEXTRAOFFSET_GREN_LINUX)  // setmodel use ;)
 
stock is_grenade_smoke(ent)
{
 return (
get_pdata_int(entOFFSET_GREN_WEAPON_IDEXTRAOFFSET_GREN_LINUX) == CSW_SMOKEGRENADE)

You can also use offsets for checking if the nade has exploded.

Register the setmodel as post (it will be compatible with plugins that alter the model)
PHP Code:
    register_forward(FM_SetModel"FM_SetModel_Post"1); 
Use get_gametime(), more efficient
PHP Code:
//global_get(glb_time, s_fGameTime)
s_fGameTime get_gametime() 
Use angle_vector(), less arguments => more efficient.
PHP Code:
    //        engfunc(EngFunc_MakeVectors, s_fEndOrigin);
//            global_get(glb_v_forward, s_fEndOrigin);
angle_vector(s_fEndOriginANGLEVECTOR_FORWARDs_fEndOrigin
Noone proved that those offsets work with linux (I know that they are, but I dont wanna risk it).

I use set_model pre cause some plugins may block the function.

angle_vector is good but I don't like using same variable twice in one line function.
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-25-2009 , 08:59   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #27

Sprites are a little small, also you can see quite fine inside a smoke grenade... you could add a flash priority screen fade when inside the smoke, like in CS:Source... also, just for fun you could add a feature for smoke periodical damage there was a plugin that did that but doesn't really work.
__________________
Hunter-Digital is offline
Old 10-25-2009, 09:06
whitebear
This message has been deleted by whitebear.
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 10-25-2009 , 09:09   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #28

Quote:
Originally Posted by Hunter-Digital View Post
Sprites are a little small, also you can see quite fine inside a smoke grenade... you could add a flash priority screen fade when inside the smoke, like in CS:Source... also, just for fun you could add a feature for smoke periodical damage there was a plugin that did that but doesn't really work.
I wont make any of this. I made this plugin only for this reasons:
1. Fix 16 bit cheating.
2. No fps drops.
3. No smoke through walls.
4. Add ability to explode in air (how it should be).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-25-2009 , 09:09   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #29

Does offset m_iId (41) works with "grenade" ?? i have a doubt.
Works fine with "weapon_smokegrenade" for sure.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
sexiest
Junior Member
Join Date: Oct 2009
Location: Ukraine, Kiev
Old 10-25-2009 , 09:51   Re: Smoke Grenade Features (anti 16bit)
Reply With Quote #30

Quote:
sprites.zip: CRC failed in ballsmoke_x2.spr. The file is corrupt
sprites.zip: CRC failed in ballsmoke_x3.spr. The file is corrupt
repack archive!
__________________


Sorry me my poor English
sexiest is offline
Send a message via ICQ to sexiest Send a message via AIM to sexiest Send a message via Skype™ to sexiest
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 15:43.


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