Kill Player scripting help.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
HellBlade64
Posts: 46
Joined: Tue May 13, 2014 3:00 pm

Kill Player scripting help.

Post by HellBlade64 »

I originally posted about this on the Zandro forums, but they were... uhm... not too helpful.

So here we go.

I'm pretty experienced when it comes to mapping, scripting, and decorate codes.

That said, I still have a lot about coding to learn. A LOT.

One such thing is this little thing I can't figure a way to get working in a mod I'm maintaining.
Spoiler:
(Important: This script is executed by an enter script. These scripts are handled in a global ACS.)

This is an If\Then check script, nothing special.

It checks whether or not sv_fastmonsters returns a positive value, aka checks whether fast monsters is on.
(That open script also sets sv_fastmonsters to 1)

If the check script detects that fast monsters has been deactivated, an easter-egg will play, followed by fast monsters being re-activated. The sounds that play are clips Gunnery Sgt. Hartman's dialogue from Fullmetal Jacket.

And the script's end is supposed to kill the player who deactivates sv_fastmonsters.

I originally got this working by dropping a rocket explosion at the player's feet.

But my friend, who came up with the idea of renewing Hard Doom, told me that having an explosion spawn at someone's feet can potentially be used to troll ala running next to someone else and killing them.

So the next idea was to have the script itself kill the player.

There in lies the challenge, I'm trying to get this working over a server.

So far, none of my efforts have yielded results.

Any help to solve this would be greatly appreciated.

Cheers, and Merry Christmas! :3
User avatar
Arctangent
Posts: 1235
Joined: Thu Nov 06, 2014 1:53 pm

Re: Kill Player scripting help.

Post by Arctangent »

Yeah, no, you're not going to be getting help with something like this.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed

Re: Kill Player scripting help.

Post by wildweasel »

The most I'd want a mod to do is suggest that the mod is designed for sv_fastmonsters. I certainly wouldn't want the mod to go to such lengths to stop people from disabling it, because how the player plays is the player's business.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Kill Player scripting help.

Post by Mikk- »

not gonna lie this reeks of terrywad trash. just stop

Return to “Scripting”