DOD: add sprites to knives & nades

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

DOD: add sprites to knives & nades

Post by Archive-Poster »

A simple plugin (requested in THIS THREAD) that will create an explosion sprite (see thumbnail 1) for grenades, mortars and rockets. The thing with using this is, it will render the explosion sprite even if the player has cl_particlefx set to off.

It will also create a sparks sprite (see thumbnail 2) when a player's knife, shovel or bayonette strikes a world object.

It works by hooking the creation of a decal on the world or an entity from using those weapons. And then creates a sprite at the same location.

You can mess around with it and subtitute/add whatever sprites you want for some crazy effects.

Since it uses decals, I suppose its possible that your server/client decal settings MAY restrict renderability. I haven't witnessed any yet, but anything's possible.

CVar (Optional - Will default to Enable)
weaponsprites_enable <0|1> // plugin enable/disable (Default = 1 <enable>)
Attachments
dod_nade_exp.jpg
dod_nade_exp.jpg (50.84 KiB) Viewed 177 times
dod_melee_spark.jpg
dod_melee_spark.jpg (54.29 KiB) Viewed 177 times
dod_weaponsprites.zip
(106.31 KiB) Downloaded 22 times

Who is online

Users browsing this forum: No registered users and 0 guests