Raised This Month: $32 Target: $400
 8% 

DOD: add sprites to knives & nades


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 10-16-2007 , 15:15   DOD: add sprites to knives & nades
Reply With Quote #1

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>)
.
Attached Thumbnails
Click image for larger version

Name:	dod_nade_exp.jpg
Views:	870
Size:	50.8 KB
ID:	20883   Click image for larger version

Name:	dod_melee_spark.jpg
Views:	732
Size:	54.3 KB
ID:	20884  
Attached Files
File Type: sma Get Plugin or Get Source (dod_weaponsprites.sma - 1435 views - 2.1 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 10-16-2007 at 17:42.
Vet is offline
Send a message via MSN to Vet
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-08-2007 , 18:38   Re: DOD: add sprites to knives & nades
Reply With Quote #2

Gotta love plugins with only 3 functions. Good stuff man, very efficient. Glad to see more DoD stuff - keep it up.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 22:17.


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