Author Topic: hostage script help  (Read 1035 times)

0 Members and 1 Guest are viewing this topic.

Offline w00titsme

  • Soldier
  • **
  • Posts: 219
hostage script help
« on: June 07, 2008, 02:59:34 pm »
I have no clue on how to script at all. Absolutely NO IDEA.
So I was wondering if anyone knows a script that could do the following:

1)Disallow one team from using weapons
2)After a period of time, allow one member to have a secondary weapon, the knife
3)Punish the guarding team for randomly killing the hostages
4)Give the guards more health then the hostages.

Help me?
Make your Coca Cola fresh!

Offline BRADEN

  • Camper
  • ***
  • Posts: 319
Re: hostage script help
« Reply #1 on: June 07, 2008, 03:14:48 pm »
I had absolutely no idea too, but I downloaded Notepad++ and visited [eC]'s server help (which is absolutely awesome) and started experimenting. After a while you'll be scripting your own server!

You'll feel better if you do the script yourself other than just installing someone else's.

Death is the solution to all problems. No man; no problem.
-Joseph Stalin

Offline amb2010

  • Camper
  • ***
  • Posts: 264
  • Fear the dot ...
Re: hostage script help
« Reply #2 on: June 07, 2008, 03:32:05 pm »
Well there aren't any scripts that do that at least that i know of. But BRADEN is right, it isn't very hard to learn how to script. Just visit Here or Here. Also look around here or in the script release section at other people's code to learn how to do it.
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".

Offline w00titsme

  • Soldier
  • **
  • Posts: 219
Re: hostage script help
« Reply #3 on: June 07, 2008, 05:51:34 pm »
Thank you both very much!

Edit: Actually, when I type in the functions, do I have to press enter after? Or + or something?
« Last Edit: June 07, 2008, 06:05:09 pm by w00titsme »
Make your Coca Cola fresh!

Offline sai`ke

  • Camper
  • ***
  • Posts: 318
  • Can't be arsed to remove christmas avatar
Re: hostage script help
« Reply #4 on: June 07, 2008, 05:57:46 pm »
sounds like a nice idea :D
#soldat.ttw #ttw.gather --- Quakenet!
http://ttwforums.com

Offline w00titsme

  • Soldier
  • **
  • Posts: 219
Re: hostage script help
« Reply #5 on: June 07, 2008, 09:10:19 pm »
I don't know what to use in EnEscE's help section. :/
The functions and such are all unknown for me.
Make your Coca Cola fresh!

Offline amb2010

  • Camper
  • ***
  • Posts: 264
  • Fear the dot ...
Re: hostage script help
« Reply #6 on: June 07, 2008, 10:27:38 pm »
Well for what you are doing it seems like you would need to use:

OnPlayerDamage - Make the damage value lower when the player being shot is a guard so it seems like they have more health or you could do more damage when a hostage is shot so they die faster

SetWeaponActive - To disable the guns for a team

AppOnIdle - A count down for the one layer receiving the knife

ForceWeapon - To give the player at the when the countdown ends a knife

WriteConsole - To display messages to everyone

And maybe a random number to determine who gets the knife. If i think of anything else ill post it :D

*when you click the name on the side bar, it explains what value does what and usually gives an example*

« Last Edit: June 07, 2008, 10:35:58 pm by amb2010 »
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".

Offline BRADEN

  • Camper
  • ***
  • Posts: 319
Re: hostage script help
« Reply #7 on: June 08, 2008, 03:36:25 am »
I don't know what to use in EnEscE's help section. :/
The functions and such are all unknown for me.

First, think of what you want to do. When does it happen? (refer to events) What do you want to do at the event? (refer to functions)

Death is the solution to all problems. No man; no problem.
-Joseph Stalin

Offline w00titsme

  • Soldier
  • **
  • Posts: 219
Re: hostage script help
« Reply #8 on: June 09, 2008, 05:10:18 pm »
Well for what you are doing it seems like you would need to use:

OnPlayerDamage - Make the damage value lower when the player being shot is a guard so it seems like they have more health or you could do more damage when a hostage is shot so they die faster

SetWeaponActive - To disable the guns for a team

AppOnIdle - A count down for the one layer receiving the knife

ForceWeapon - To give the player at the when the countdown ends a knife

WriteConsole - To display messages to everyone

And maybe a random number to determine who gets the knife. If i think of anything else ill post it :D

*when you click the name on the side bar, it explains what value does what and usually gives an example*


Yeah Braden, this is it. XD
Make your Coca Cola fresh!

Offline Peu

  • Soldier
  • **
  • Posts: 117
Re: hostage script help
« Reply #9 on: June 11, 2008, 12:25:24 pm »
I think you also need some way to check if a player is armed or not, otherwise, how will you penalize guards who kill 'innocents?' An honor system wouldn't work. And how are winners determined? A countdown for the guards' maintaining order vs the POWs reaching an extraction point where there are both flags? Survival mode or not? What kind of maps?

I'm interested in the idea; I think that it could be an interesting gamemode if properly handled. It brings to mind prison breaks, maybe that should be a map. Like reverse inf, where they escape the fortified castle and get to the forest beyond. duck for snipers.