PDA

View Full Version : Breakable doors


zak1212
10-20-2008, 01:03 PM
Im trying to get into understanding how to makign a plugin so thought i try and give myself a project i.e converting this plugin to work on dod

the plugin is on the amxmodx site

http://forums.alliedmods.net/showthread.php?p=62410

Some where in the thread its says that the explosion code is differant for dod

im i right in thinking this line is specific to cs

" if ( vector_distance( g_vDoorOrigins[i], vExplosion ) / 40.0 "



any help for this noob to try and convert this plugin to dod or have i bitten of more than i can chew

excuse my ignorance and im not trying to rip someones work off just want to see if i can get it to work and how it does work

Ba5ic
10-26-2008, 05:08 AM
This would be of interest, anyone else see potential here?

Zor
10-26-2008, 08:55 AM
This would be interesting, however as you say its a CS plugin. I did a quick look, all you really need to do is figure out when a grenade or rocket explodes. Check its location against the doors location and then if it is within a close proximity you can do the damage to the door. Thats the psudo code for the plugin. You can get rid of most everything else in that.

Cheers!

Ba5ic
10-26-2008, 09:20 AM
I'm gonna do some digging on this.

Thanks Zor

dademan000
05-02-2009, 11:41 AM
Has this been updated, or even worked on lately?

Rogers~