Author Topic: Possible to...?  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Possible to...?
« on: January 03, 2009, 06:31:37 pm »
Is it possible to make a script that will say desired text when I kill someone? (not for server)
And if it is possible, would be hard to make it?


Thanks for all your answers!

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Possible to...?
« Reply #1 on: January 03, 2009, 06:42:04 pm »
what do you mean by "not for server" ?

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Possible to...?
« Reply #2 on: January 03, 2009, 06:43:03 pm »
Check out this website, notice the event OnPlayerKill and the function WriteConsole. Check the handy links section for a basic pascal guide (I like the third one).

Offline Rag

  • Major(1)
  • Posts: 18
Re: Possible to...?
« Reply #3 on: January 03, 2009, 06:43:55 pm »
What do you mean "not for server"? Private message or something else??

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: Possible to...?
« Reply #4 on: January 03, 2009, 06:51:38 pm »
By "not for server" I mean like not a script for a server.
I want to make/get a script that will work even if not connected to specific server (like if you play with bots).
Thanks iDante, I'm checking the site right now  ;)

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Possible to...?
« Reply #5 on: January 03, 2009, 07:07:44 pm »
By "not for server" I mean like not a script for a server.
I want to make/get a script that will work even if not connected to specific server (like if you play with bots).
Unfortunately, client-side scripting is not possible. However, if you play with bots you can make your own dedicated server and play against bots there.

Offline amb2010

  • Camper
  • ***
  • Posts: 264
  • Fear the dot ...
Re: Possible to...?
« Reply #6 on: January 03, 2009, 07:13:19 pm »
If I'm not mistaken, you should be able to change the text displayed when you kill someone. There is a file somewhere that holds all the "Player scores for bravo team" "You killed player" messages and I'm pretty sure you can change them.

Edit: Maybe in Soldat\Txt\Languages\(your language you use).txt
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: Possible to...?
« Reply #7 on: January 03, 2009, 07:16:01 pm »
Yeah I know, but I rather just do it without hosting another server (I host few servers).
Too bad that the client-side scripting is not possible :'(

(I know that Soldat dedicated doesn't take much to run)

Offline amb2010

  • Camper
  • ***
  • Posts: 264
  • Fear the dot ...
Re: Possible to...?
« Reply #8 on: January 04, 2009, 01:30:16 am »
What I told you should change what is displayed on your screen when you kill someone no matter what server you play on. Its not a script, more of a mod to your game..

EDIT: My mistake, its Soldat\Txt\default.txt that changes the ingame messages. Just replace the line of what you want to change (in your case "You killed %s) to what ever you want it to say instead (like "You annihilated %s) keep the %s though that is the place for the person's name that you killed
« Last Edit: January 04, 2009, 01:38:06 am by amb2010 »
And as the lyrics go in the United State's national anthem: "America, f**k YEAH!".

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: Possible to...?
« Reply #9 on: January 04, 2009, 05:18:37 am »
...EDIT: My mistake, its Soldat\Txt\default.txt that changes the ingame messages. Just replace the line of what you want to change (in your case "You killed %s) to what ever you want it to say instead (like "You annihilated %s) keep the %s though that is the place for the person's name that you killed

I didn't meant like that. I meant like when you kill someone YOU say e.g. "Owned by DaPhenomena", so that everyone can see the text.
Like in Counter Strike: Source if you ever played it.

Offline Leo

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1011
Re: Possible to...?
« Reply #10 on: January 04, 2009, 05:28:18 am »
More spam messages ? Bad idea.

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Possible to...?
« Reply #11 on: January 04, 2009, 06:36:32 am »
I didn't meant like that. I meant like when you kill someone YOU say e.g. "Owned by DaPhenomena", so that everyone can see the text.
Like in Counter Strike: Source if you ever played it.
Set a taunt.

Offline daphenomena

  • Major
  • *
  • Posts: 72
  • -wP- DaPhenomena
    • FPSBanana
Re: Possible to...?
« Reply #12 on: January 04, 2009, 09:11:15 am »
Set a taunt.

I forget to press taunts while playing the game + too lazy to press another key  ;D
That are the main reasons why I needed the script.

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Possible to...?
« Reply #13 on: January 04, 2009, 12:25:19 pm »