Author Topic: Two M79 ?  (Read 1267 times)

0 Members and 1 Guest are viewing this topic.

Offline XNickX

  • Major(1)
  • Posts: 31
Two M79 ?
« on: September 28, 2009, 07:41:31 am »
How to do when a player gives flag to another as they die?
« Last Edit: September 30, 2009, 10:44:23 am by XNickX »

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: Killed after flag ?
« Reply #1 on: September 28, 2009, 08:48:38 am »
I can't understand what do you think of (probably most of the forumers don't). Please state your problem more clearly.
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Killed after flag ?
« Reply #2 on: September 28, 2009, 09:09:21 am »
When a player gives a blue flag to red and get red point, so that the player died. Sry my English is low Iam Czech.

Offline Centurion

  • Flagrunner
  • ****
  • Posts: 699
Re: Killed after flag ?
« Reply #3 on: September 28, 2009, 10:52:48 am »
It's nothing special. It's called survival mode.

You can kill your enemies or you can capture the flag and everybody on the map will die afterwards.

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Killed after flag ?
« Reply #4 on: September 28, 2009, 01:06:14 pm »
So I thought I wanted this: when I do I will die for the CAP Climb server.
« Last Edit: September 29, 2009, 02:44:06 pm by XNickX »

DarkCrusade

  • Guest
Re: Killed after flag ?
« Reply #5 on: September 28, 2009, 01:50:12 pm »
So you need only a script that kills a player after scoring? :P Well, it was scripted before and I bet you can find it in the scripting sections ;)

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Killed after flag ?
« Reply #6 on: September 29, 2009, 07:20:07 am »
Sry but I have found. And another problem:
Could someone please write me a script:
When I write in the game! Comands so writes:
! save - Position saver ... ...
! load ...
.....
And I could write in there what I wanted. Very please.

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Killed after flag ?
« Reply #7 on: September 29, 2009, 11:07:14 am »
This script has !save and !load.
Things like this are pretty easy to add.

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Killed after flag ?
« Reply #8 on: September 29, 2009, 01:11:41 pm »
But I do not mean. I want that when I write the game:
! commands
So I write the lines of commands that you write there. For example:
I write:! Commands and appears to me
All commands:
! eferfger - This is the
! frefgrg - fseffa
! Fasefs - dsefsef
.............
Written by someone like me a script please?
« Last Edit: September 29, 2009, 02:43:58 pm by XNickX »

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Killed after flag ?
« Reply #9 on: September 29, 2009, 01:40:55 pm »

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Killed after flag ?
« Reply #10 on: September 29, 2009, 02:43:35 pm »
Thanks a lot. And now I have only one problem:
Died when the player likely to score in the mode: Capture the Flag. I was looking for something like this but I found nothing :-(

Resolved Thx All  ;)
« Last Edit: September 30, 2009, 10:50:43 am by XNickX »

Offline XNickX

  • Major(1)
  • Posts: 31
Two M79 ?
« Reply #11 on: September 30, 2009, 10:44:06 am »
I discovered the problem:
How do I have to start the game right at him in both hands two M79?  :'(

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Two M79 ?
« Reply #12 on: September 30, 2009, 12:56:07 pm »
You should use ForceWeapon in OnPlayerRespawn.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Two M79 ?
« Reply #13 on: September 30, 2009, 12:57:32 pm »
You should use ForceWeapon in OnPlayerRespawn.
If I recall correctly, OnPlayerRespawn is called before the player actually respawns.

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Two M79 ?
« Reply #14 on: September 30, 2009, 02:30:27 pm »
Sry I do not know how to program in C++ :-( Could someone please have a do? Will the credits on the server.  :'(
« Last Edit: September 30, 2009, 02:35:58 pm by XNickX »

Offline |_ancer

  • Soldier
  • **
  • Posts: 153
  • again and again.
Re: Two M79 ?
« Reply #15 on: October 01, 2009, 08:32:53 am »
Soldat scripting isn't in c++ but in pascal. I made a really simple script that does what you asked for. This just makes you ALWAYS have the m79 in your hands.
Quote
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);
begin
if (PrimaryNum <> 7) then ForceWeapon(ID, 7, 7, 0);
end;
« Last Edit: October 01, 2009, 08:35:02 am by |_ancer »

Offline XNickX

  • Major(1)
  • Posts: 31
Re: Two M79 ?
« Reply #16 on: October 01, 2009, 08:55:30 am »
Thank you very much please moderators to close this topic.  :D

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: Two M79 ?
« Reply #17 on: October 01, 2009, 08:56:52 am »
You should use ForceWeapon in OnPlayerRespawn.
If I recall correctly, OnPlayerRespawn is called before the player actually respawns.
You may true, i don't know exactly.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline croat1gamer

  • Veteran
  • *****
  • Posts: 1327
  • OMG CHANGING AVATAR!!! ^ω^
Re: Two M79 ?
« Reply #18 on: October 01, 2009, 09:20:48 am »
It calls instantly when respawning, and the player actually gets the weapon a tick after spawning or later, not when he spawns, which nullifies the ForceWeapon.
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.