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

CS/CZ Ricochet v2.01


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Exolent[jNr] (178)
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-23-2009 , 11:40   CS/CZ Ricochet v2.01
Reply With Quote #1

Description:
It will make the bullets bounce if some properties are met.

Modules:
CStrike
FakeMeta
HamSandWich


Cvars:
ric_damage_percent 75 // The damage percentage dealt to the user if the bullet that ricocheted will hit him
ric_angle 30 // the maximum angle that the bullet will bounce and not get through the wall
ric_tracers 1 // Tracers for the bounced bullet, it will only show the bouncing bullet! It has been made like this to be used in conjunction with advanced bullet tracers
ric_pistols 1 //Pistol bullets will bounce
ric_shotguns 1 // Shotgun bullets will bounce
ric_smgs 1 // Smg bullets will bounce
ric_rifles 1 // Rifle bullets will bounce
ric_snipers 1 // Sniper bullets will bounce
ric_materials 1023 // Materials cvar look at the explanation below.
ric_money 100 // Extra money reward for killing a player with a bouncing bullet

Material cvar:
The materials that we have are:
PHP Code:
#define MATERIAL_CONCRETE     1
#define MATERIAL_DIRT         2
#define MATERIAL_GRATE        4
#define MATERIAL_METAL        8
#define MATERIAL_SNOW         16
#define MATERIAL_COMPUTER     32
#define MATERIAL_SLOSH        64
#define MATERIAL_TILE         128
#define MATERIAL_VENTS        256
#define MATERIAL_WOOD         512
#define MATERIAL_GLASS        1024 
To make bullets bounce when hitting one of the kinds above you need to add them to the ric_materials cvar.
Example:
To make bullets bounce when hitting wood and glass
1024 + 512 = 1536
The ric_materials cvar needs to have this value: ric_materials 1536

Note:
The texture types are defined in the client file "texture.txt" in sound/. If the map is not listed with the texture name and the texture type related, the default texture type will be Concrete. So the default material is CONCRETE!

Useful Links:
Servers using this plugin

Screens/Movie:
http://www.noelshack.com/up/aaa/lawl-286298e158.bmp
http://www.youtube.com/watch?v=WGV_ybTOGRI

To do:
- Make triple ricochet
- Tracers do their job properly
- Angle for every weapon cvars

Changelog:
PHP Code:
2.01 Small fixnow it supports snow material
2.0 
Changed angle cvaradded security checksmaterial checkfunc_breakable influencemoney reward
1.0 
Initial Release 
Attached Files
File Type: sma Get Plugin or Get Source (ricochet.sma - 4235 views - 11.6 KB)
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 10-12-2009 at 19:52. Reason: Remade the plugin parts, can be placed at approval
ot_207 is offline
 



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 21:36.


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