AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Bouncing bullets (https://forums.alliedmods.net/showthread.php?t=59394)

marcellus 08-13-2007 12:42

Bouncing bullets
 
2 Attachment(s)
This plugin will make every bullets bouncing upon walls/floor.

cvars :
amx_showrebound 0 | 1 : will show the rebound of your bullet

You need Fakemeta and hamsandwich modules

I used the Detect fired particle creation/type/number/attack/obstacle/vector
tutorial by VEN. Thank you VEN.

v1.1 :
- clean up / optimize the code
- removed unnecessary code (thank you VEN again)
- detect now if CS or CZ is running then use correct decals (requested by vittu and thank you for the CS decals numbers)

v1.0 :
- initial release

Arkshine 08-13-2007 15:32

Re: Bullets rebound
 
Code:
client_print(0, print_chat, "'%s' s'est pris un ricochet dans la tronche par '%s'", namev, namek)

You should use english language by default.

Pnoibestylin 08-17-2007 21:58

Re: Bullets rebound
 
ahm so wat does this plugins exactly do?
bullets rebounding? i dont get what you mean.

Fredd 08-18-2007 08:51

Re: Bullets rebound
 
i saw the code but i don't really get it. but a quesition, will the rebounded bullets register damage if they hit a player\something breakable?

BlackMilk 08-18-2007 15:56

Re: Bullets rebound
 
Quote:

Originally Posted by marcellus (Post 517536)
The purpose of this plugin is to make bullets's rebound.

It has been tested on CZ only, but should work for CS 1.6 (but you will have to change the bullet holes decals in the plugin)

You need Fakemata (with create_tr2() and free_tr2()) and hamsandwich modules.

cvars:
sv_showrebound 0|1 : display the rebound of your bullet

I used the Detect fired particle creation/type/number/attack/obstacle/vector
tutorial by VEN. Thank you VEN.

Okay so as clarity for everyone this plugin should let players bounce around?

But does the bullet lose damage/speed upon bouncing off a surface? Will it bounce several times or just once? etc.

marcellus 08-18-2007 21:58

Re: Bullets rebound
 
ok, sorry for my bad english.

with this plugin every bullets shots bounce upon a wall or floor or object ...

if you set sv_showrebound to 1, you will understand what i mean. i will try to post a screenshot soon.

The bullet bounce one time only and make damages with traceattack() function.

@BlackMilk : No, the bullet doesnt lose damage or speed and it will bounce one time only.
@arkshine : thank you but it is just a "test" message to let everyone put his own message instead. I have "translated" the message in english for clarity.

Toster v2.1 08-19-2007 03:21

Re: Bullets rebound
 
Can you add a cvar for how many times it will rebound?

BlackMilk 08-19-2007 07:28

Re: Bullets rebound
 
Oh well guess it won't hurt to give it a go.

vvg125 08-25-2007 01:42

Re: Bullets rebound
 
Quote:

Originally Posted by marcellus (Post 520304)
@arkshine : thank you but it is just a "test" message to let everyone put his own message instead. I have "translated" the message in english for clarity.

If it's meant to be changed by the user, make it a CVAR.

VEN 09-09-2007 06:03

Re: Bullets rebound
 
Change fm_is_valid_ent(entity) to pev_valid(entity) and then you don't need to #include <fakemeta_util>

You better use engfunc(EngFunc_WriteCoord, ...) instead of write_coord(...), then you don't need to round vectors.

Also for example i do not see how g_shotgun_shot_particle_number[] is useful here. Snippets/tutorilas is to show you some scripting aspects/technique. You have to read and understand it not just copy/paste code blocks.


All times are GMT -4. The time now is 17:47.

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