Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Poison over time?

Author
Message
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 18th Dec 2010 18:00
Just wondering if anyone has or is willing to share a poison over time script. I wanna make a new spell that poisons players or enemies.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Dec 2010 23:41
Best way to do it, IMO, would be to set up a global script (AKA put the script on a triggerzone or dynamic light.... triggerzone is my prefered choice) that uses an entity timer and subtracts health from the player every couple seconds or so. You'll probably want to attach that to a variable to trigger the poison effect.

Same goes for enemis, except they will need to have the poison effect put directly into their scripts.


Hope that helps you out.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 19th Dec 2010 01:23
ahh well i was wanting to attach the poison damage to a wep. Basicly just take x amount of damage over time. Should be doable and thought i seen a script for it once.
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Dec 2010 01:18
I have been successful in making a "freeze gun" for the player that slowed down enemies when they were shot by it.

It involved using the "shotbyweap" command in ply's mod. Basically, you check for if the entity was shot by this specific weapon, and if they were, trigger the poison/freeze/burn/etc whatever you wanted to have happen.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 21st Dec 2010 01:46
Sweet, u have a copy of the code so i can look at it or should it allready be included in the Project Blue script?
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Dec 2010 09:09
I don't have a copy of it on me, sorry. The commands are documented in the manual, so you should be able to go off of those.


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.
old_School
15
Years of Service
User Offline
Joined: 29th Aug 2009
Location:
Posted: 21st Dec 2010 19:03
Ok sweet thanks Ill take a look at it.

Login to post a reply

Server time is: 2025-06-04 20:53:56
Your offset time is: 2025-06-04 20:53:56