Author |
Message |
Icebird Novice
Joined: Sep 01 2008 Posts: 30 Offline
|
Posted: Mon Sep 01, 2008 3:41 pm Post subject: Shields |
|
|
|
|
Hello.
I would like to have different shields than the one currently available in Continuum. The shields I have in mind would absorb a certain amount of damage and only after the shields are completely down damage would be dealt to the health points. They should also recharge over time. If you know StarCraft, I am talking about shields like the Protoss have them.
Do you think it would be possible to do that with ASSS?
Thanks for reading. |
|
Back to top |
|
|
CypherJF I gargle nitroglycerin
Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon Sep 01, 2008 4:04 pm Post subject: |
|
|
|
|
Nope, it wouldn't be ASSS which would need to support it (I'm sure it could be added in without too much hassle); however, modifying Continuum to support said shield system is another thing - nearly impossible. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Mon Sep 01, 2008 4:33 pm Post subject: |
|
|
|
|
Might be possible..
You watch damage on all players.
Someone gets hit, struct shield->shieldremaining -= DamageData->damage.
Then send a full charge prize to whoever gets hit. Keep doing this until their shield runs out.
While shield is on, run a timer to recharge the shield periodically.
Create a graphics under the energy bar to show your shield amount/how much is remaining. |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Mon Sep 01, 2008 5:29 pm Post subject: |
|
|
|
|
Can shields be unprized?
If so, use shields with a ridiculous long time, and unprize them when you're done
<tests>
Nope, they can't be unprized... hmmm _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
|
Doc Flabby Server Help Squatter
Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Tue Sep 02, 2008 6:47 am Post subject: |
|
|
|
|
You can remove them with a shipreset... That probably wont help you tho! _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps |
|
Back to top |
|
|
Icebird Novice
Joined: Sep 01 2008 Posts: 30 Offline
|
Posted: Tue Sep 02, 2008 11:09 am Post subject: |
|
|
|
|
Thank you for your answers. However I don't think it will work the way I had in mind. tcsoccerman's idea is not bad but the full charge would restore the health points as soon as the ship gets hit while it has any amount of shields left. It would then 'forget' previous hits. But I'd like the health points to be fully independent from the shields. Without a "Restore Exactly 1 HP" prize it won't work, i guess. |
|
Back to top |
|
|
Samapico No, these DO NOT look like penises, ok?
Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Tue Sep 02, 2008 11:21 am Post subject: |
|
|
|
|
well, you could dynamically change bullet/bomb damage settings for the player, as his shield changes, and monitor when he gets hit, like tsoccerman said. |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Tue Sep 02, 2008 12:05 pm Post subject: |
|
|
|
|
i have actually got a start on this module.
as far as the full charge, i do believe it will work. in fact, you were contradicting yourself in that paragraph.
i'm making it so every time you respawn, your shield is full. once it runs out your energy will start to be affected.
-tcsoccerman |
|
Back to top |
|
|
Icebird Novice
Joined: Sep 01 2008 Posts: 30 Offline
|
Posted: Tue Sep 02, 2008 1:13 pm Post subject: |
|
|
|
|
Let's construct an example: Our ship has 100 HP | 50 SH
Now step by step:
Hit with 60 DMG -> 40 HP | 50 SH
Subtract DMG from SH -> 40 HP | 0 SH
Send recharge -> 100 HP | 0 SH
Oops, 10 DMG lost. (It should be 90 HP | 0 SH)
Another case: Our ship has 20 HP | 40 SH
Hit with 50 DMG -> 0 HP | 40 SH
Oops, already dead. (It should be 10 HP | 0 SH)
And one last case that comes to my mind: Our ship has 30/100 HP | 10 SH
(It almost died in a fight but came away with 30/100 HP | 0 SH and waited until the shields recharged to 10)
Hit with 20 DMG -> 10 HP | 10 SH
Subtract DMG from SH -> 10 HP | 0 SH
Send recharge -> 100 HP | 0 SH
Oops, the ship is in better condition than before the hit. (The ship should end up with 20 HP | 0 SH) |
|
Back to top |
|
|
tcsoccerman Server Help Squatter
Age:32 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Tue Sep 02, 2008 1:27 pm Post subject: |
|
|
|
|
ok that helped. the last one is the one that doesn't fit in.
1. i thought shield couldn't recharge after it got below 0.
2. HP is never affected until shield runs out, and shield cannot be brought back after it is gone, so that player could not have had 30 hp AND 10 sh.
so the basic life of a ship would be-
1.spawn with shield
2.get a few hits, never bringing shield below 0, and never affecting hp.
3.sh goes below 0, SHIELD IS NO LONGER A PART OF THIS SHIP UNTIL HE IS BACK TO LIFE (caps is emphasis, not anger)
4. player dies
5.back to 1. |
|
Back to top |
|
|
Legatus Guest
Offline
|
Posted: Tue Apr 28, 2009 10:50 pm Post subject: |
|
|
|
|
How is this project coming along? It seems to be something I'd be interested in. |
|
Back to top |
|
|
|