PDA

View Full Version : DoD Throw Rocks (v1.5)


diamond-optic
11-15-2006, 10:37 PM
DoD Throw Rocks
- Version 1.5
- 12.26.2008
- diamond-optic

Credits:

- Zor for the base from 'DoD Smoke Grenade' v0.7a
- spq for help with blocking the suicide log message
- TatsuSaisei for logging detail messages, custom weapon support
Information:

- Basically you can now throw rocks around...

- Hitting another player with the rock does damage (FF depends on dod_throwrocks_ff setting)
- Rock will make a footstep sound when it lands.. Confuse the enemy on your location..
- Randomly throws 2 different size rocks with slightly different weights & friction

- Psychostats compatible log messages (registers as a new weapon)

- Server List: http://www.game-monitor.com/search.php?rulename=dod_throwrocks_stats
(http://www.game-monitor.com/search.php?rulename=dod_throwrocks_stats) * Public CVARs got a bit messed up by that screwy steam update *
Commands:

throw_rock //Throw a Rock
CVARs:

dod_throwrocks "1" //turn ON(1)/OFF(0)

dod_throwrocks_admin "1" //turn ON(1)/OFF(0) admin mode (def. level: immunity)
dod_throwrocks_admin_delay "0.5" //how often an admin can throw a rock (if admin mode = 1)

dod_throwrocks_dmg "20" //damage done when a rock hits a player

dod_throwrocks_delay "2.0" //how often you can throw a rock (in seconds)

dod_throwrocks_ff "2" //determines what rock does in FF situations...
//"0" = NO friendly fire no matter what
//"1" = ALWAYS friendly fire
//"2" = Obeys mp_friendlyfire setting
Extra:

- If using AMXBans for the file consistency, I recommend that you
check out the following link for a fix for the banning:
* http://www.dodplugins.net/forums/showthread.php?t=1421

- If you run the ps_heatmaps plugin, for creating spatial stats for
creating heatmaps in PsychoStats 3.1+, I recommend that you check out
the following link for a fix for that plugin recreating suicide log msgs
* http://www.avamods.com/download.php?view.177

- I also recommend that you check out one of the following links for fixing
a possible problem that may occur with the DoD Stats & Stats Logging
plugins that come with AMXX (as well as an improved display name)
* http://www.dodplugins.net/forums/showthread.php?t=1466
* http://www.avamods.com/download.php?view.176

- Set the admin level needed for 'admin mode' thru the ROCK_ADMIN define (default: immunity)

- Set the MAX_ROCKS define to set maximum number of rocks existing at one time (default: 32)
* Be careful messing with this one...
* Setting this too high could make your server vulnerable to crashing

- The FULL_PRECACHE define controls whether all files are precached or not
* If you find that some sounds dont work, enable this
* If you get 'file not precached' errors, enable this
Known Problems:

- When you kill someone with a rock it still prints in the console that it
was a 'world' kill. But it does send it to the logs as a 'rock'..

- Sometimes the rock will get stuck in a spot where it doesnt totally come to
rest, you'll see it just spinning around & hear it making the noise over and
over again.. For this problem I added the 'dod_throwrocks_maxlife' cvar so
that if for some reason the rock hasnt been removed by the normal process,
it will be removed when the maxlife time has been reached..
Change Log:

- 08.10.2006 Version 0.1
Initial testing release

- 11.04.2006 Version 0.1b
Added define for max number of rocks at one time
Changed way the rock gets 'killed'
Added log messages for detailed stats (thanks TatsuSaisei)
Added 'admin mode' where admins can have a diff delay time
Changed delay times to float values

- 11.15.2006 Version 1.0
Initial non-beta release

- 11.18.2006 Version 1.1
Added CVAR to control how rocks behave with friendly fire
Adjusted some of the defualt CVAR values
Decreased 'gravity' of both rocks slightly

- 05.28.2007 Version 1.2
Changed some returns
Added description to client command
Added draw to RoundState hook

- 06.13.2007 Version 1.3
Removed default DoD sounds from precache (dod already precaches them)
Added FULL_PRECACHE define to enable precaching of all files
Added weaponstats logging for victim's death
Fixed bug in setting user kills
Various code changes & improvements

- 11.05.2007 Version 1.4
Rock 'owner' no longer changes on hitting a player
Fix for annoying sound loop on stuck rock

- 12.26.2008 Version 1.5
Fixed a rare runtime error
Added custom weapon support
Small code improvements
Added PCVAR usage to mp_friendlyfire queries
Moved maxlife & removal CVARs to defines
Fixed throwing sound covering up weapon fire
Removed an unnecessary global
Now you cant throw rocks while shooting
Added simulated throwing animation
Checks for godmode when hitting a player
Improved the mathematical side of throwing
Changed touch & think forwards over to HamSandwich
DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.59

tegu
11-15-2006, 11:03 PM
WOOT!! Got it first, /rushes off to tryit!

tegu
11-15-2006, 11:27 PM
This is amazingly fun!! I love it. Nice touch on the larger sized rocks too. Almost like throwing a boulder lol!

:D :D :D :D

Box Cutter
11-16-2006, 12:13 AM
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
11-16-2006, 12:16 AM
Sorry Box. I had already put in my 8 hours+. I just had to snap up on it. Sorry again... hehehehe!:D

diamond-optic
11-16-2006, 01:03 AM
im already thinking of expanding it..

by 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..

hmm what about the medical gibs or whatever.. how would throwing needles around be lmao..

Box Cutter
11-16-2006, 01:24 AM
hmm what about the medical gibs or whatever.. how would throwing needles around be lmao..

That would be hilarious.

This 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
11-16-2006, 09:14 AM
im already thinking of expanding it..

by 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..

hmm what about the medical gibs or whatever.. how would throwing needles around be lmao..

lmao, 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...
(allied_gibs.mdl axis_gibs.mdl)

haha, 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...

garbagegibs.mdl is interesting... throwing apple cores and half eatne sandwiches...

icegibs.mdl are rather plain, but for "snow" type map might be more fitting then rocks...

zombiegibs.mdl is just a single bloody leg...

rollingstone.mdl is a single large boulder, but has a built in rotation animation... probably would look good being thrown...

pumpkin_wj5.mdl too bad Halloween has passed, this jack o lantern would have made a niced themed item to toss...

now 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
11-16-2006, 11:22 AM
lmao this could turn out to be more fun then i expected :-)

Box Cutter
11-16-2006, 11:53 AM
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*
11-16-2006, 03:24 PM
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 plugin

Just one question does the bigger stones come out after a few of the smaller ones?

diamond-optic
11-16-2006, 05:51 PM
it just randomly selects which one each time you throw them

{SR} *Raggy*
11-16-2006, 08:07 PM
Alrite cool. Really cool plugin thanks Diamond :)

mantk
11-17-2006, 06:55 PM
Esta muy cachondo el plugin, nos hemos reído mucho cuando lo active en nuestro server, enhorabuena Diamond-Optics.

I'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

cccpsmiley
11-18-2006, 05:52 AM
hey guys.
for one, this plugin rocks! and is very crazy how far dod coding has come.

great job.

i have a small request if possible: a ROCK ONLY MODE. Possible? I few guys on the server ask about that. Thanks

diamond-optic
11-19-2006, 01:23 AM
update to version 1.1

-Added CVAR to control how rocks behave with friendly fire
-Adjusted some of the defualt CVAR values
-Decreased 'gravity' of both rocks slightlynew CVAR:
dod_throwrocks_ff "2" //determines how plugin behaves in FF situations...
//"0" = NO friendly fire no matter what
//"1" = ALWAYS friendly fire
//"2" = Obeys mp_friendlyfire setting

mantk
11-19-2006, 09:19 AM
dod_tackle_ff

Is dod_throwrocks_ff, maybe you tired too ;)

diamond-optic
11-19-2006, 03:25 PM
ahh god damn lol..

i added the cvar to both plugins.. and yes i guess i was a bit tired hehe

its fine in the plugin itself and in the 1st post..
i just messed up in the reply (post 2290)

{SR} *Raggy*
11-19-2006, 05:39 PM
Lol I'll update again now :D

diamond-optic
03-20-2007, 01:37 AM
i've finally attached a zip file to the 1st post that contains the weapon images for the rocks in psychostats..

made for & tested only on pstats 2 (2.3.4 to be specific)

so if it doesnt work as-is in pstats3.. then its up to you to get it to work :P
..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..

:D

ive had these for months now i should have posted them a while ago.. but i guess better late then never :P

diamond-optic
06-03-2007, 12:14 AM
Minor Update:

- 05.28.2007 Versoin 1.2
Changed some returns
Added description to client command
Added draw to RoundState hook

diamond-optic
06-13-2007, 07:56 PM
Updated to v1.3

- 06.13.2007 Version 1.3
Removed default DoD sounds from precache (dod already precaches them)
Added FULL_PRECACHE define to enable precaching of all files
Added weaponstats logging for victim's death
Fixed bug in setting user kills
Various code changes & improvements

diamond-optic
11-30-2007, 10:00 PM
Updated to Version 1.4

- 11.05.2007 Version 1.4
Rock 'owner' no longer changes on hitting a player
Fix for annoying sound loop on stuck rock

TigerMan4
12-09-2007, 03:58 PM
Sweet my server is in your list of throw rock servers. :)

with the changes made since version 1.3 of throw rocks , to 1.4 , are the commands still the same eg: bind "key" "throw_rock" ?

I did notice somthing on my server with the throwrocks plugin.

everyone can use it , but seems that admins with full admin , can throw the rocks a bajillion times faster than non full admins , meaning.

I 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.

any ideas ?

diamond-optic
12-09-2007, 04:45 PM
all the commands and such are the same...

and for the admins:

dod_throwrocks_admin "1" //turn ON(1)/OFF(0) admin mode (def. level: immunity)
dod_throwrocks_admin_delay "0.5" //how often an admin can throw a rock (if admin mode = 1)


setting dod_throwrocks_admin to 0 should make admins and players have the same delay (by default 'admins' are those with immunity)

killem_all
12-20-2007, 02:03 PM
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.
thanks for the help

Unleashed108
06-09-2008, 04:05 AM
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
06-09-2008, 09:25 AM
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
06-09-2008, 01:35 PM
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?

well you would have to write code for each object and it would probably be a pain in the butt lol

diamond-optic
12-27-2008, 12:34 AM
...WEEEEEEEEEEEEEEEEEEEEEE AN UPDATE!!!


Version 1.5 Change Log:
- 12.26.2008 Version 1.5
Fixed a rare runtime error
Added custom weapon support
Small code improvements
Added PCVAR usage to mp_friendlyfire queries
Moved maxlife & removal CVARs to defines
Fixed throwing sound covering up weapon fire
Removed an unnecessary global
Now you cant throw rocks while shooting
Added simulated throwing animation
Checks for godmode when hitting a player
Improved the mathematical side of throwing
Changed touch & think forwards over to HamSandwich
Extra:
- If using AMXBans for the file consistency, I recommend that you
check out the following link for a fix for the banning:
* http://www.dodplugins.net/forums/showthread.php?t=1421

- If you run the ps_heatmaps plugin, for creating spatial stats for
creating heatmaps in PsychoStats 3.1+, I recommend that you check out
the following link for a fix for that plugin recreating suicide log msgs
* http://www.avamods.com/download.php?view.177

- I also recommend that you check out one of the following links for fixing
a possible problem that may occur with the DoD Stats & Stats Logging
plugins that come with AMXX (as well as an improved display name)
* http://www.dodplugins.net/forums/showthread.php?t=1466
* http://www.avamods.com/download.php?view.176

=*MDMILBURN*=
11-12-2009, 09:36 PM
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?