PDA

View Full Version : DoD DrugMod


Dr.G
04-09-2009, 04:29 PM
////////////////////////////////////////////////////////////////////////////////////////////////////
/*

INFO:

This plugin gives people the opportunity to take drugs while playing. For the most part, it will
give people an advantage like godmode, unlimited Stamina, higher hp or low gravity.

Everything will be done randomly, there is also a possibility that people will take an overdose and die.
When people take drugs they will be exposed to any effect, these effects are rather difficult
to describe.

*** If you suffer from epilepsy or any other disease like that its NOT recommended to use
this plugin. The effects is mostly flashing lights and hallucinations!



CVARS:

- Plugin on / off
dod_dm 1

- How many do we allow high at the same time?
dod_dm_max_abusers 2

- Announce when ppl drug themselves
dod_dm_annonce 1

- Should we mess with ppls sound?
dod_dm_sound_effect 1

- Wanna hide chat msgs?
dod_dm_hide_chat 1


How long the trips should last in seconds:

dod_dm_crack 25
dod_dm_heroin 30
dod_dm_pcp 20
dod_dm_mushroom 40
dod_dm_acid 60



SAY COMMANDS:

/crack - smoke crack
/heroin - do heroin
/pcp - smoke pcp
/mushroom - eat mushrooms
/acid - drop acid
/drugme - gives you a random drug



CREDIT:

Hawk552! This plugin is based on his drugmod for TS.



CHANGELOG:

09-04-09
release

14-04-09
my secretary (Tank) dont like my spelling... (:
+ IsPlayer check

18-04-2009
native calls is reduced + Ham

21-04-09
team switch bug fixed...
*/
////////////////////////////////////////////////////////////////////////////////////////////////////

The two zip files attached is screenshots...

Bugs etc. goes in this thread

- cheers


Public Stats (http://www.game-monitor.com/search.php?search=dod_drugmod_stats&type=variable)

Tank
04-13-2009, 11:49 AM
OFF-TOPIC:

I was wondering how this works as I want to implement it into a plugin Im writing.

Like where do you check how many people are currently using the plugin?

if(get_pcvar_num(p_enable) && (g_max_abusers == get_pcvar_num(p_max_abusers)))
{
client_print(id, 3, "[%s] %s", PLUGIN, max_abusers_msg)
return 0
}

ON-TOPIC:

You plugin is way out of my league, but perhaps a small beautymistake:

line 1040: client_print(0, print_chat, "[%s] Yet another drug abuser bits the dust! %s took an overdosis...", PLUGIN, c_name)

overdosis = overdose
bits = bites

line 965: return client_print(id,print_chat,"[%s] No trip to you! Try again...", PLUGIN)

I suggest: No trip for you!

Dr.G
04-13-2009, 12:16 PM
http://www.game-monitor.com/search.php?rulename=dod_drugmod_stats

This is how many that uses this atm. NON lol.. Well it is a bit too spacey maybe, or ppl dont trust non developers.

haha if you meant in the codeing matter of how many ppl that are taking drugs its just a global that count up and down. When ppl start a trip like in CmdCrack(id), g_max_abusers will be go up (g_max_abusers++), and when we clear the effects again in ClearEffects(id) g_max_abusers will count down (g_max_abusers--).

And every time ppl call a trip they will be checked in the is_id_valid(id) stock and if g_max_abusers == get_pcvar_num(p_max_abusers) they will get the max_abusers_msg on line 87



Yea my english is pretty bad. Sry for that. I need a secretary (D-O ??? or you Tank lol???) :D

Tank
04-13-2009, 04:44 PM
This is how many that uses this atm. NON lol.. Well it is a bit too spacey maybe, or ppl dont trust non developers.

Not every server founder is is fond of plugins and not everyone is so keen on always changing their server. If the server is running good, they sometimes prefer on keeping it like that before adding new plugins.

haha if you meant in the codeing matter of how many ppl that are taking drugs its just a global that count up and down. When ppl start a trip like in CmdCrack(id), g_max_abusers will be go up (g_max_abusers++), and when we clear the effects again in ClearEffects(id) g_max_abusers will count down (g_max_abusers--).


So basicly g_max_abusers++ just adds +1 to the array/cvar? And the -- is just -1? If so, that explains a lot.

Yea my english is pretty bad. Sry for that. I need a secretary (D-O ??? or you Tank lol???)

I'm Dutch, so Im basicly at the same level of English as you are. But I'll try to help as much as I can.

Dr.G
04-13-2009, 05:49 PM
So basicly g_max_abusers++ just adds +1 to the array/cvar? And the -- is just -1? If so, that explains a lot.

yes.. take a look at that death message research plugin... thing, i made its under tuts

Dr.G
04-18-2009, 02:14 PM
*updated 18-04-2009*

Dr.G
04-24-2009, 08:51 AM
*updated* - If you use version 1.3 you wanna update ;)

gunsofnavarone
04-24-2009, 10:33 AM
I am not sure of this plugin's usefulness. Though I suppose on the "fun" side to add a bit of quirkiness to a game, it may be alright. But, as I read above: "*** If you suffer from epilepsy or any other disease like that its NOT recommended to use this plugin. The effects is mostly flashing lights and hallucinations!", it seems to me this could be dangerous to players who come upon a server with this plugin running. It could quite easily lead to somebody become medically culpible for causing a siezure in someone.

I for one do not like this for this reason alone. We are trying to provide fun and liesure enjoyment, but this is beyond that if you ask me.

Tank
04-24-2009, 11:26 AM
Isn't that the responsibility of a server admin to point people at these risks? I mean, just going off memory there are so many plugins which contains flashy animations, I think Dr G. just was mature enough to extra point on this.

I mean if these effects will cause an issue then all plugins containing a flashing HUD should have the same results as this plugin. We are not talking about a stroboscope effect.

diamond-optic
04-24-2009, 08:19 PM
it seems to me this could be dangerous to players who come upon a server with this plugin running. It could quite easily lead to somebody become medically culpible for causing a siezure in someone.

I for one do not like this for this reason alone. We are trying to provide fun and liesure enjoyment, but this is beyond that if you ask me.


to be honest..i would think one would have to be SUPER sensitive to these kind of things to really suffer from this, and if thats the case most likely wouldnt or shouldnt be playing anyway

and i dont see how the server admin or plugin scripter could be held responsible, as you give up that right when you connect to any server (as no one is forcing you to) and even more so if you manually 'activate' this plugins effects on yourself while playing.. And i wouldnt be surprised if theres some sort of warning on the box or somewhere with dod like there is on most video games.. plus it says online gameplay experience may vary or whatnot.. and i dont think that admins should have to point these things out to ppl because anyone who does suffer from this condition should be aware of the risks. And if you do have this condition and dont know it, i doubt the 1st time you would experience it would be from this plugin

gunsofnavarone
04-24-2009, 08:37 PM
Hey, I didn't put the warning in the plug-in, and server administrators can't be there throughout the whole day. If it's not that serious a concern, then maybe the warning should be removed.

I don't know about the plugin personally, I only know what was written in this thread. Take your chances if you will, but from my point-of-view, a warning from my perspective on this has been given.

Like anything else, you're certainly not obligated to heed it, but the end result could very well be from what I previously described.

On the flip side of the coin to the point of removing the warning, that too could result in culpibility issues for failure to provide warning.

It seems to me dam*ed if you do, dam*ed if you don't. Safest route, just don't use the plugin.

Ready for that expensive hot-coffee lawsuit?

gunsofnavarone
04-24-2009, 08:43 PM
One more point. You may not think that it will actually induce siezures, but I'd like to know if that's your professional medical opinion on this? Are you ready to face "Claims" from others that it did in fact induce siezures?

Avoid the plugin, remove these "flashes" from the plugin, or make multi-language motd warnings, etc. Whatever you deem appropriate I guess.

gunsofnavarone
04-24-2009, 08:58 PM
And I would hope that because it's posted above in its complete form for anyone to take, that any lawsuits wouldn't be extended to those who manage this forum.

Dr.G
04-25-2009, 12:00 AM
You are one hell of an odd kid gunsofnavarone.. PM me for name and address, so you can get that lawsuit on. and save us from more of your crying here..

- cheers

gunsofnavarone
04-25-2009, 08:05 AM
Kindly relax, please.

First, I'm not a kid. I'm 47.

Second, you evidently don't know the world you live in.

Third, I have not intention of filing any lawsuit, nor do I have any desire to be on the other end of one as a result of using this plugin.

Fourth, I don't need to be berated for my comments, afterall it was you who put the first warning in this thread. I did no name calling, I could have gone on about how politically (or socially) incorrect the plugin is (condoning drug use), but I didn't. My comments were solely to the point of protecting oneself. I did not open that door, you did. Take responsibility for your own actions or inactions. And don't blame me because your feelings are hurt because of it.

It's a shame that we as administrators and/or players of a game which a great many of us enjoy, have to stoop so low to create such a plugin that evidently can be so controversial (in the medical aspects, legal aspects, and social aspects).

Maybe if you never put the warning in the first place, your own personal pride and arrogance wouldn't be blinding you now and you wouldn't be attacking me for "whining".

As far as I'm concerned, people can do as they wish, for the country in which I live is still, in many respects, considered to be a free nation whereas people can do as they please. But, the flip side of the coin is, if some moron who just wants to make a quick buck comes across this thread and/or plugin, the repercussions of any possible lawsuit from anyone could be increased simply because:

a) That people decided to use and disseminate the plugin EVEN AFTER HAVING BEEN WARNED.

b) Some folks even went so far to "mock" another for providing a warning (the "author" at this point being one of them).

I have enjoyed this forum in the past for the great many plugins that exist, and even the couple that you folks have created at my request. I still thank you for that. You folks who have involved yourselves in learning how to script these have a great talent.

I am only sorry that you can't exercise foresight and/or wise judgement like you do your imagination to create these plugins.

So, go ahead and rant some more about my comments. I will not defend them anymore. I spoken my mind on this subject.

Let the cards fall where they may.

diamond-optic
04-25-2009, 05:42 PM
no one needs to 'protect' themself in anyway.. as there is nothing illegal being done here, its the internet and you can do, for the most part, just about anything you want

there is no grounds for a successful lawsuit in any way concerning this plugin.. look at how many people have attempted to sue actual video game companies for producing 'seizures' and death and whatnot from aspects in the actual non-modified version of a game, and just about every single one ive known of, the defendant(s) had won, largely in part because just about every video game has a warning in some place, be in in the loading screens of the game, the manual, and/or on the box.. especially when it comes to online gaming (which more or less informs the end user that they take responisbility once they connect to an online server)..

if a client actively, by their own will, decides to connect to a server, theyve forfeited many of these rights they might have, whether its health related or something else (such as damage to ones computer hardware or getting a virus or losing your job cause you couldnt stop playing) ..and im willing to bet that in the steam account license agreement, or somewhere else concerning steam-sponsored online gameplay, that the client is soley responisble once they connect to a server privately owned by someone else and that there is no guarantees to the quality or experience provided by said online gameplay

im also pretty sure there is similar stuff in the GPL license which covers AMXX and pretty much ALL plugins.. That the end-user, as in the client themself, is the only one responsible for any effects produced by the software and that there is no guarantee or warranty for the software or what it does/how it works (or doesnt work lol)

and that is especially true with this plugin, if a client manually runs the command(s) themself it is their own fault, especially considering that such is beyond playing the game in its default way as it was originally released

and even if it was something forced by the server, there would still be no ground for a lawsuit.. Running the HLDS or operating one gives you the right to do whatever you want (along the guidelines via valve/steam which are pretty loose) and whether knowingly or not, the client is the only one at fault once connecting to a server

and to think that in some way the owner of this forum could be at risk for 'hosting' this plugin is just ridiculous


A. DISCLAIMERS.
THE ENTIRE RISK ARISING OUT OF USE OR PERFORMANCE OF STEAM, THE STEAM SOFTWARE, AND MERCHANDISE REMAINS WITH YOU, THE USER.therefor, ANYTHING that happens via any steam software (hence a steam game), is the responibility of the client...




and if you are against drugs in the first place, dont download or run the plugin, immediately leave a server that is running it, and dont even view the thread (especially if you feel the need to post about how drugs are bad and that how you think this plugin is telling people to go out and take drugs, because of all the people who will do so just because of this plugin) ..im always amazing by the whole 'drugs = bad / killing = fine and dandy' thing....

because obviously instead of just ignoring this plugin/thread, youve felt the need to voice a close-minded opinion which has amounted to all this drama over a few measly lines of open source third party code

gunsofnavarone
04-26-2009, 11:20 AM
First, let me offer an apology.

My apology is to the point that I recommended that people don't use this. It is an extreme opinion, and it is solely mine.

Having said that, and to anybody who has followed this thread and are game server administrators, I urge that you take precautions to provide players with adequate warnings upon joining your server. Noting that the vast majority of servers are public, and that exposes the server to players from all over the world, as an administrator it seems to me that it's warnings should be in multilanguage, unless of course you have a means of denying access to "foreigners" to your server.

To Diamond's arguments, I would like to further comment that I highly doubt that Steam, Valve, AMXX or any other entity would come to the author's or any server administrators aid since he/they is/are not employed by them. To think that they accept responsibility for any "freelancer" (for lack of another term), in my opinion, is not likely.