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 fix, now it supports snow material
2.0 - Changed angle cvar, added security checks, material check, func_breakable influence, money reward
1.0 - Initial Release