Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD Throw Rocks (v1.5)

by diamond-optic · 2006-11-16 · 30 replies · 24371 views · 118 downloads

Read the thread (31 posts)

From the first post

DoD Throw Rocks
n- Version 1.5
n- 12.26.2008
n- diamond-optic
n
nCredits:
n
- Zor for the base from 'DoD Smoke Grenade' v0.7an- spq for help with blocking the suicide log messagen- TatsuSaisei for logging detail messages, custom weapon support
Information:
n
- Basically you can now throw rocks around...nn- Hitting another player with the rock does damage (FF depends on dod_throwrocks_ff setting)n- Rock will make a footstep sound when it lands.. Confuse the enemy on your location..n- Randomly throws 2 different size rocks with slightly different weights & frictionnn- Psychostats compatible log messages (registers as a new weapon)nn- Server List: [URL="http://www.game-monitor.com/search.php?rulename=dod_throwrocks_stats"]http://www.game-monitor.com/search.php?rulename=dod_throwrocks_statsn[/URL] * Public CVARs got a bit messed up by that screwy steam update *
Commands:
n
throw_rock //Throw a Rock
CVARs:
n
dod_throwrocks "1"            //turn ON(1)/OFF(0)nndod_throwrocks_admin "1"        //turn ON(1)/OFF(0) admin mode (def. level: immunity)ndod_throwrocks_admin_delay "0.5"    //how often an admin can throw a rock (if admin mode = 1)nndod_throwrocks_dmg "20"            //damage done when a rock hits a playernndod_throwrocks_delay "2.0"        //how often you can throw a rock (in seconds)nndod_throwrocks_ff "2"            //determines what rock does in FF situations...n                            //"0" = NO friendly fire no matter whatn                            //"1" = ALWAYS friendly firen                            //"2" = Obeys mp_friendlyfire setting
Extra:
n
- If using AMXBans for the file consistency, I recommend that youn check out the following link for a fix for the banning:n * [URL]https://www.dodplugins.net/forums/showthread.php?t=1421[/URL]nn- If you run the ps_heatmaps plugin, for creating spatial stats forn creating heatmaps in PsychoStats 3.1+, I recommend that you check outn the following link for a fix for that plugin recreating suicide log msgsn * [URL]http://www.avamods.com/download.php?view.177[/URL]nn- I also recommend that you check out one of the following links for fixingn a possible problem that may occur with the DoD Stats & Stats Loggingn plugins that come with AMXX (as well as an improved display name)n * [URL]https://www.dodplugins.net/forums/showthread.php?t=1466[/URL]n * [URL]http://www.avamods.com/download.php?view.176[/URL]nn- Set the admin level needed for 'admin mode' thru the ROCK_ADMIN define (default: immunity)nn- Set the MAX_ROCKS define to set maximum number of rocks existing at one time (default: 32)n * Be careful messing with this one...n * Setting this too high could make your server vulnerable to crashingnn- The FULL_PRECACHE define controls whether all files are precached or not n * If you find that some sounds dont work, enable thisn * If you get 'file not precached' errors, enable this
Known Problems:
n
- When you kill someone with a rock it still prints in the console that itn was a 'world' kill. But it does send it to the logs as a 'rock'..nn- Sometimes the rock will get stuck in a spot where it doesnt totally come ton rest, you'll see it just spinning around & hear it making the noise over andn over again.. For this problem I added the 'dod_throwrocks_maxlife' cvar son that if for some reason the rock hasnt been removed by the normal process,n it will be removed when the maxlife time has been reached..
Change Log:
n
- 08.10.2006 Version 0.1n    Initial testing releasenn- 11.04.2006 Version 0.1bn    Added define for max number of rocks at one timen    Changed way the rock gets 'killed'n    Added log messages for detailed stats (thanks TatsuSaisei)n    Added 'admin mode' where admins can have a diff delay timen    Changed delay times to float valuesnn- 11.15.2006 Version 1.0n    Initial non-beta releasenn- 11.18.2006 Version 1.1n    Added CVAR to control how rocks behave with friendly firen    Adjusted some of the defualt CVAR valuesn    Decreased 'gravity' of both rocks slightlynn- 05.28.2007 Version 1.2n    Changed some returnsn    Added description to client commandn    Added draw to RoundState hooknn- 06.13.2007 Version 1.3n    Removed default DoD sounds from precache (dod already precaches them)n    Added FULL_PRECACHE define to enable precaching of all filesn    Added weaponstats logging for victim's deathn    Fixed bug in setting user killsn    Various code changes & improvementsnn- 11.05.2007 Version 1.4n    Rock 'owner' no longer changes on hitting a playern    Fix for annoying sound loop on stuck rocknn- 12.26.2008 Version 1.5n    Fixed a rare runtime errorn    Added custom weapon supportn    Small code improvementsn    Added PCVAR usage to mp_friendlyfire queriesn    Moved maxlife & removal CVARs to definesn    Fixed throwing sound covering up weapon firen    Removed an unnecessary globaln    Now you cant throw rocks while shootingn    Added simulated throwing animationn    Checks for godmode when hitting a playern    Improved the mathematical side of throwingn    Changed touch & think forwards over to HamSandwich
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.59

Files

dod_throwrocks.sma Plugin Source 26 KB 118 dl Download Compile

The thread

All 31 posts from 11 people on DoD Throw Rocks (v1.5), kept as they were written.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-15-2006, 10:37 PM #1

DoD Throw Rocksn- Version 1.5n- 12.26.2008n- diamond-opticnnCredits:n

n- Zor for the base from 'DoD Smoke Grenade' v0.7an- spq for help with blocking the suicide log messagen- TatsuSaisei for logging detail messages, custom weapon supportn
Information:n
n- Basically you can now throw rocks around...nn- Hitting another player with the rock does damage (FF depends on dod_throwrocks_ff setting)n- Rock will make a footstep sound when it lands.. Confuse the enemy on your location..n- Randomly throws 2 different size rocks with slightly different weights & frictionnn- Psychostats compatible log messages (registers as a new weapon)nn- Server List: http://www.game-monitor.com/search.php?rulename=dod_throwrocks_statsn * Public CVARs got a bit messed up by that screwy steam update *n
Commands:n
nthrow_rock //Throw a Rockn
CVARs:n
ndod_throwrocks "1"            //turn ON(1)/OFF(0)nndod_throwrocks_admin "1"        //turn ON(1)/OFF(0) admin mode (def. level: immunity)ndod_throwrocks_admin_delay "0.5"    //how often an admin can throw a rock (if admin mode = 1)nndod_throwrocks_dmg "20"            //damage done when a rock hits a playernndod_throwrocks_delay "2.0"        //how often you can throw a rock (in seconds)nndod_throwrocks_ff "2"            //determines what rock does in FF situations...n                            //"0" = NO friendly fire no matter whatn                            //"1" = ALWAYS friendly firen                            //"2" = Obeys mp_friendlyfire settingn
Extra:n
n- If using AMXBans for the file consistency, I recommend that youn check out the following link for a fix for the banning:n * https://www.dodplugins.net/forums/showthread.php?t=1421nn- If you run the ps_heatmaps plugin, for creating spatial stats forn creating heatmaps in PsychoStats 3.1+, I recommend that you check outn the following link for a fix for that plugin recreating suicide log msgsn * http://www.avamods.com/download.php?view.177nn- I also recommend that you check out one of the following links for fixingn a possible problem that may occur with the DoD Stats & Stats Loggingn plugins that come with AMXX (as well as an improved display name)n * https://www.dodplugins.net/forums/showthread.php?t=1466n * http://www.avamods.com/download.php?view.176nn- Set the admin level needed for 'admin mode' thru the ROCK_ADMIN define (default: immunity)nn- Set the MAX_ROCKS define to set maximum number of rocks existing at one time (default: 32)n * Be careful messing with this one...n * Setting this too high could make your server vulnerable to crashingnn- The FULL_PRECACHE define controls whether all files are precached or not n * If you find that some sounds dont work, enable thisn * If you get 'file not precached' errors, enable thisn
Known Problems:n
n- When you kill someone with a rock it still prints in the console that itn was a 'world' kill. But it does send it to the logs as a 'rock'..nn- Sometimes the rock will get stuck in a spot where it doesnt totally come ton rest, you'll see it just spinning around & hear it making the noise over andn over again.. For this problem I added the 'dod_throwrocks_maxlife' cvar son that if for some reason the rock hasnt been removed by the normal process,n it will be removed when the maxlife time has been reached..n
Change Log:n
n- 08.10.2006 Version 0.1n    Initial testing releasenn- 11.04.2006 Version 0.1bn    Added define for max number of rocks at one timen    Changed way the rock gets 'killed'n    Added log messages for detailed stats (thanks TatsuSaisei)n    Added 'admin mode' where admins can have a diff delay timen    Changed delay times to float valuesnn- 11.15.2006 Version 1.0n    Initial non-beta releasenn- 11.18.2006 Version 1.1n    Added CVAR to control how rocks behave with friendly firen    Adjusted some of the defualt CVAR valuesn    Decreased 'gravity' of both rocks slightlynn- 05.28.2007 Version 1.2n    Changed some returnsn    Added description to client commandn    Added draw to RoundState hooknn- 06.13.2007 Version 1.3n    Removed default DoD sounds from precache (dod already precaches them)n    Added FULL_PRECACHE define to enable precaching of all filesn    Added weaponstats logging for victim's deathn    Fixed bug in setting user killsn    Various code changes & improvementsnn- 11.05.2007 Version 1.4n    Rock 'owner' no longer changes on hitting a playern    Fix for annoying sound loop on stuck rocknn- 12.26.2008 Version 1.5n    Fixed a rare runtime errorn    Added custom weapon supportn    Small code improvementsn    Added PCVAR usage to mp_friendlyfire queriesn    Moved maxlife & removal CVARs to definesn    Fixed throwing sound covering up weapon firen    Removed an unnecessary globaln    Now you cant throw rocks while shootingn    Added simulated throwing animationn    Checks for godmode when hitting a playern    Improved the mathematical side of throwingn    Changed touch & think forwards over to HamSandwichn
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.59

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
11-15-2006, 11:03 PM #2

WOOT!! Got it first, /rushes off to tryit!

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
11-15-2006, 11:27 PM #3

This is amazingly fun!! I love it. Nice touch on the larger sized rocks too. Almost like throwing a boulder lol!rnrn:D :D :D :D

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
11-16-2006, 12:13 AM #4

Damnit I'm at work! I wanted to be the first! As soon as I get home I am all over this like a fat kid on cotton candy!

tegu
posted here
Posts: 191
Threads: 11
Joined: Aug 2006
11-16-2006, 12:16 AM #5

Sorry Box. I had already put in my 8 hours+. I just had to snap up on it. Sorry again... hehehehe!:D

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-16-2006, 01:03 AM #6

im already thinking of expanding it..nnby being able to throw diff types of material.. like chunks of wood, cinder blocks, etc.. because it uses the rock gib models from the hl gcf file.. and theres a bunch of other gib models to play with lol..nnhmm what about the medical gibs or whatever.. how would throwing needles around be lmao..

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
11-16-2006, 01:24 AM #7
hmm what about the medical gibs or whatever.. how would throwing needles around be lmao..
rnrnThat would be hilarious. rnrnThis might be a little off topic and a totally different plugin but anyway to do something like throwing your primary gun or pistol maybe when you are out of ammo? Kind of like Sgt. Horvath did in SPR. Just a thought.

=|[76AD]|= TatsuSaisei
posted here
Posts: 794
Threads: 54
Joined: May 2005
11-16-2006, 09:14 AM #8
im already thinking of expanding it..n nby being able to throw diff types of material.. like chunks of wood, cinder blocks, etc.. because it uses the rock gib models from the hl gcf file.. and theres a bunch of other gib models to play with lol..n nhmm what about the medical gibs or whatever.. how would throwing needles around be lmao..
n nlmao, or how about using the body gibs, and letting people throw the "arm" or the "leg" model ?? That would be freaky.. people throwing bloody arms and legs around...n (allied_gibs.mdl axis_gibs.mdl)n nhaha, now you have me looking through my models and gibs files.... should put in an "option" that allows for the use of many of the differrent available gibs...n ngarbagegibs.mdl is interesting... throwing apple cores and half eatne sandwiches...n nicegibs.mdl are rather plain, but for "snow" type map might be more fitting then rocks...n nzombiegibs.mdl is just a single bloody leg...n nrollingstone.mdl is a single large boulder, but has a built in rotation animation... probably would look good being thrown...n npumpkin_wj5.mdl too bad Halloween has passed, this jack o lantern would have made a niced themed item to toss...n nnow I know there are more, I just figured I would toss a few suggestions out for possible "custom" choices in objects to throw...

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-16-2006, 11:22 AM #9

lmao this could turn out to be more fun then i expected :-)

Box Cutter
posted here
Posts: 155
Threads: 7
Joined: Jun 2006
11-16-2006, 11:53 AM #10

Just got done trying this and it's so awesome! Thanks d-o. I can't wait for everyone to try this out this afternoon.

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
11-16-2006, 03:24 PM #11

This plugin is savage. I know why you put the delay timer LOL I went to show a few members and they went a bit hyper with it and lagged the server REAL BAD But it is a brilliant pluginrnrnJust one question does the bigger stones come out after a few of the smaller ones?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-16-2006, 05:51 PM #12

it just randomly selects which one each time you throw them

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
11-16-2006, 08:07 PM #13

Alrite cool. Really cool plugin thanks Diamond :)

mantk
posted here
Posts: 21
Threads: 0
Joined: Jun 2006
11-17-2006, 06:55 PM #14

Esta muy cachondo el plugin, nos hemos reĆ­do mucho cuando lo active en nuestro server, enhorabuena Diamond-Optics.rnrnI'm very tired to think, good job. If possible to work with TK revenge plugin? because now the people is killing the team mates with rocks, is more easy than kill the other team xD

C cccpsmiley
posted here
Posts: 10
Threads: 2
Joined: Apr 2006
11-18-2006, 05:52 AM #15

hey guys. rnfor one, this plugin rocks! and is very crazy how far dod coding has come.rnrngreat job.rnrni have a small request if possible: a ROCK ONLY MODE. Possible? I few guys on the server ask about that. Thanks

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-19-2006, 01:23 AM #16

update to version 1.1nn

-Added CVAR to control how rocks behave with friendly firen-Adjusted some of the defualt CVAR valuesn-Decreased 'gravity' of both rocks slightly
new CVAR:n
dod_throwrocks_ff "2"   //determines how plugin behaves in FF situations...n                        //"0" = NO friendly fire no matter whatn                        //"1" = ALWAYS friendly firen                        //"2" = Obeys mp_friendlyfire setting
mantk
posted here
Posts: 21
Threads: 0
Joined: Jun 2006
11-19-2006, 09:19 AM #17
dod_tackle_ff
rnrnIs dod_throwrocks_ff, maybe you tired too ;)

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-19-2006, 03:25 PM #18

ahh god damn lol..nni added the cvar to both plugins.. and yes i guess i was a bit tired hehennits fine in the plugin itself and in the 1st post..ni just messed up in the reply (post 2290)

{SR} *Raggy*
posted here
Posts: 370
Threads: 27
Joined: Apr 2006
11-19-2006, 05:39 PM #19

Lol I'll update again now :D

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
03-20-2007, 12:37 AM #20

i've finally attached a zip file to the 1st post that contains the weapon images for the rocks in psychostats..nnmade for & tested only on pstats 2 (2.3.4 to be specific)nnso if it doesnt work as-is in pstats3.. then its up to you to get it to work :Pn..but also if it needs to be changed for pstats3 and you actually do it lol.. let me know and ill attach those images as well..nn:Dnnive had these for months now i should have posted them a while ago.. but i guess better late then never :P

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-02-2007, 11:14 PM #21

Minor Update:nn

   - 05.28.2007 Versoin 1.2n        Changed some returnsn        Added description to client commandn        Added draw to RoundState hook
diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-13-2007, 06:56 PM #22

Updated to v1.3nn

- 06.13.2007 Version 1.3n        Removed default DoD sounds from precache (dod already precaches them)n        Added FULL_PRECACHE define to enable precaching of all filesn        Added weaponstats logging for victim's deathn        Fixed bug in setting user killsn        Various code changes & improvements
diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
11-30-2007, 10:00 PM #23

Updated to Version 1.4nn

    - 11.05.2007 Version 1.4n        Rock 'owner' no longer changes on hitting a playern        Fix for annoying sound loop on stuck rock
TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
12-09-2007, 03:58 PM #24

Sweet my server is in your list of throw rock servers. :)rnrnwith the changes made since version 1.3 of throw rocks , to 1.4 , are the commands still the same eg: bind "key" "throw_rock" ?rnrnI did notice somthing on my server with the throwrocks plugin.rnrneveryone can use it , but seems that admins with full admin , can throw the rocks a bajillion times faster than non full admins , meaning.rnrnI can hit my bind key and throw the rocks repeatedly with no delay between them, but others who have it bound , have the time delay between rocks.rnrnany ideas ?

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
12-09-2007, 04:45 PM #25

all the commands and such are the same...nnand for the admins:nn

dod_throwrocks_admin "1"        //turn ON(1)/OFF(0) admin mode (def. level: immunity)[FONT=monospace]n[/FONT]dod_throwrocks_admin_delay "0.5"    //how often an admin can throw a rock (if admin mode = 1)[FONT=monospace]n[/FONT]
nnsetting dod_throwrocks_admin to 0 should make admins and players have the same delay (by default 'admins' are those with immunity)

K killem_all
posted here
Posts: 1
Threads: 0
Joined: Oct 2007
12-20-2007, 02:03 PM #26

i was wanting to install this on my server but i am new to installing plugins can someone get me instructions on where to put the files in what folders? i played with this plugin on one server but cant figure out how to install it.rnthanks for the help

U Unleashed108
posted here
Posts: 21
Threads: 2
Joined: May 2008
06-09-2008, 03:05 AM #27

is there anyway you can put random things on the floor of a map where you can pick-up like a nade and throw it.. sorta like HL2?

TigerMan4
posted here
Posts: 317
Threads: 37
Joined: Aug 2006
06-09-2008, 08:25 AM #28

there is a drop nade plugin , that works rather well...dod_deathnades . it makes a killed player drop whatever nades he had left.

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
06-09-2008, 12:35 PM #29
is there anyway you can put random things on the floor of a map where you can pick-up like a nade and throw it.. sorta like HL2?
nnwell you would have to write code for each object and it would probably be a pain in the butt lol

diamond-optic
started this thread
Posts: 2,068
Threads: 103
Joined: May 2005
12-27-2008, 12:34 AM #30

...WEEEEEEEEEEEEEEEEEEEEEE AN UPDATE!!!nnnVersion 1.5 Change Log:n

- 12.26.2008 Version 1.5n    Fixed a rare runtime errorn    Added custom weapon supportn    Small code improvementsn    Added PCVAR usage to mp_friendlyfire queriesn    Moved maxlife & removal CVARs to definesn    Fixed throwing sound covering up weapon firen    Removed an unnecessary globaln    Now you cant throw rocks while shootingn    Added simulated throwing animationn    Checks for godmode when hitting a playern    Improved the mathematical side of throwingn    Changed touch & think forwards over to HamSandwichn
Extra:n
- If using AMXBans for the file consistency, I recommend that youncheck out the following link for a fix for the banning:n * https://www.dodplugins.net/forums/showthread.php?t=1421nn- If you run the ps_heatmaps plugin, for creating spatial stats forn creating heatmaps in PsychoStats 3.1+, I recommend that you check outn the following link for a fix for that plugin recreating suicide log msgsn * http://www.avamods.com/download.php?view.177nn- I also recommend that you check out one of the following links for fixingn a possible problem that may occur with the DoD Stats & Stats Loggingn plugins that come with AMXX (as well as an improved display name)n * https://www.dodplugins.net/forums/showthread.php?t=1466n * http://www.avamods.com/download.php?view.176
=*MDMILBURN*=
posted here
Posts: 66
Threads: 11
Joined: Jun 2008
11-12-2009, 09:36 PM #31

with the use of this in a gungame server ,causing a suicide removes a level ..is there a way to rewrite a area to just cause a death instead?

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC