View Full Version : [DoD Throw Rocks] - [Beta 1]
diamond-optic
08-21-2006, 09:27 PM
ok the plugin is attached..
the problem im having is it always crashes my server (linux 32 ded.) sometimes after 5mins, sometimes after an hour... but it always does.. and then the server wont reboot on its own and i have to do it manually.. Ive been testing it for a while on my local win32 listen server which is basically a duplicate of my ded server (same mods, plugins, maps etc...) and it hasnt cuased any problems on my listen server
info:
DoD Throw Rocks
dod_throwrocks "1" //Turn ON(1)/OFF(0)
dod_throwrocks_dmg "10" //Damage done when a rock hits a player
dod_throwrocks_delay "10" //How often you can throw a rock
dod_throwrocks_removal "3" //How long after coming to rest to remove the rock
dod_throwrocks_maxlife "15" //Max life of rock (incase it doesnt come to rest)
if anyone is able to help, that would be awesome lol
diamond-optic
08-23-2006, 06:11 AM
and since TatsuSaisei is so awesome i have stats again..
theyve been updating for like 10hrs i think lol still with a couple days worth of logs left..
but i can see that when i did have the plugin working it was correctly logging (sorta lol) the rock kills and it comes up as a new weapon on pstats.. tho it doesnt log dmg/hitplace/etc
i just hope i can figure out this crashing problem.. but thats always a threat when creating entities
it might be the way i kill off the rocks.. not sure but ill look at that myself in the morning
tho seeing as how its based off my version of zor's smoke nades.. it should work fine.. so i musta made a mistake somewhere in it
Wilson [29th ID]
08-23-2006, 05:36 PM
I am willing to bet it's in your round_message() function. My mortar plugin had the same problem a while back and it had to do with getting rid of possible shells that were still on the ground.
=|[76AD]|= TatsuSaisei
08-23-2006, 06:30 PM
and since TatsuSaisei is so awesome i have stats again..
lol
but i can see that when i did have the plugin working it was correctly logging (sorta lol) the rock kills and it comes up as a new weapon on pstats.. tho it doesnt log dmg/hitplace/etc
I figured out how to log damage to the stats, I will be working on hit place next, and think it can be done using the get_user_aiming function
Float: get_user_aiming ( index, &id, &body, [ distance ] )
If the player is aiming at another player, then the id and part of the body is set into the second and third parameters (passed by reference).
the third parameter is the key, and you would need to use a switch/case system to log specific body parts... which is possible... I am doing it now...
log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats^" (weapon ^"Katana^") (shots ^"1^") (hits ^"1^") (kills ^"1^") (headshots ^"1^") (tks ^"0^") (damage ^"%d^") (deaths ^"0^") (score ^"5^")",namek,get_user_userid(killer),authidk,teamk,get_u ser_health(victim)+50)
and there is the "weaponstats2" line as well, and THESE are what psychostats parses in the log.... I havn't gotten to this part yet, as you know I am working on getting the player model to animate... I have the first person model doing what I want.... but look in any server log, weaponstats2 happens as a player disconnects and will immediately follow the weaponstats log line.
diamond-optic
11-03-2006, 08:46 PM
im in the process of testing a new version of this ive been working on.. and everything seems to be working fine for me so far...
but also since it all seems to be good to go now.. im going to hold off on posting it here as i might very well end up putting it in the dev plugins forum soon..
just figured i'd give a little status update on this...
Box Cutter
11-04-2006, 05:29 PM
Thanks for the update d-o, I will be one of the first to use your plugin when it is finalized.
diamond-optic
11-15-2006, 10:39 PM
Closing thread....
Official Release: http://www.dodplugins.net/forums/showthread.php?t=464
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.