Author Topic: ° AntiFlagDrop V1 °  (Read 2937 times)

0 Members and 1 Guest are viewing this topic.

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
° AntiFlagDrop V1 °
« on: June 02, 2009, 04:55:59 pm »
Script Name: AntiFlagDrop
Script Description Anti Drop Flag
Author: VinceBros
Compile Test: Passed
Core Version: 2.6.5
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:
It is a procedure which makes the flag grabber die if he drops it.
I added some features like BonusCap or Runner mode which means flag grabber loses his gun when grabbed.
It can be used as a sub-mode as well

To modify the features just open the .pas file and check for
Code: [Select]
Const
Runner = false; // Set true for runner mode - Means that player will lose his guns when he grabs flag
BonusOnCap = false; // set true for BonusOnCap - Means that the player who cap get a bonus when he scores.


Special Thanks to : Curt


(Size 842 B)
- http://soldatcentral.com/index.php?page=script&f=114 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **
« Last Edit: June 03, 2009, 11:20:02 am by VinceBros »

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: ° AntiFlagDrop V1 °
« Reply #1 on: June 19, 2009, 04:02:15 pm »
Sorry, but,
Make a script which will make flag grabber get the flag back if he drops it...
KAWAAAAAAAIIIIIIIIII

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: ° AntiFlagDrop V1 °
« Reply #2 on: June 21, 2009, 06:46:27 pm »
It's AntiFlagDrop. Means you CAN'T drop the flag while you have it. If you drop it you die then you CAN'T get it back :P

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: ° AntiFlagDrop V1 °
« Reply #3 on: June 23, 2009, 11:42:39 am »
AntiFlagDrop means that you can't drop the flag. If you drop it - you get it back.
KAWAAAAAAAIIIIIIIIII

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: ° AntiFlagDrop V1 °
« Reply #4 on: June 23, 2009, 07:35:45 pm »
It's AntiFlagDrop. Means you CAN'T drop the flag while you have it. If you drop it you die then you CAN'T get it back :P

this is weird

Im chill like that

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: ° AntiFlagDrop V1 °
« Reply #5 on: June 24, 2009, 01:39:05 am »
You could use GiveBonus() than SpawnObject, then you will be sure that capper will receive bonus.

you CAN'T get it back :P

Maybe add flag respawning? That will really mean "can't".

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: ° AntiFlagDrop V1 °
« Reply #6 on: June 24, 2009, 11:44:54 pm »
Ooh yeah. What i said wasn't clear lol, i meant when you drop the flag you die. So it will be hard to get it back ( flag returned, or taken by someone else ) you can get it back but can not drop it!

Was it understand lol

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: ° AntiFlagDrop V1 °
« Reply #7 on: June 26, 2009, 12:08:02 pm »
Don't kill him, move the flag back to the player..
Find some way...
Try f*cking with MovePlayer.
KAWAAAAAAAIIIIIIIIII

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: ° AntiFlagDrop V1 °
« Reply #8 on: June 26, 2009, 12:32:06 pm »
There is a ReturnFlag function made. You can probably use this in combination with SetSpawnStat to move the flag anywhere you want, including on the person to give it back. Or you can MovePlayer him, as already mentioned, to the flag spawn after it has respawned, and back to his original position.

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: ° AntiFlagDrop V1 °
« Reply #9 on: June 26, 2009, 05:01:18 pm »
SetSpawnStat and Flags is a very bad idea. And if you move the Player over a long distance he could lose the Flag.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: ° AntiFlagDrop V1 °
« Reply #10 on: June 27, 2009, 11:14:58 am »
And if you move the Player over a long distance he could lose the Flag.
A series of MovePlayers of a given constant distance or lower evenly placed maybe?

Offline y0uRd34th

  • Camper
  • ***
  • Posts: 325
  • [i]Look Signature![/i]
Re: ° AntiFlagDrop V1 °
« Reply #11 on: June 27, 2009, 03:45:05 pm »
Hm, yeah then yes :D

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: ° AntiFlagDrop V1 °
« Reply #12 on: June 27, 2009, 06:27:15 pm »
And if you move the Player over a long distance he could lose the Flag.
A series of MovePlayers of a given constant distance or lower evenly placed maybe?
Some time ago I was testing it.. As far as I know you'll have to wait a bit between MovePlayer calls..
KAWAAAAAAAIIIIIIIIII

Offline VinceBros

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 275
Re: ° AntiFlagDrop V1 °
« Reply #13 on: June 28, 2009, 07:41:49 pm »
But Curt, if a player drops the flag... Just for curiosity lulz, instead of killing the player, we will move him to his team Spawn Point ( getting information about it with SetSpawnStat ). Then if i want ( in my script ) to move the flag to this Flag Dropper, i will use GetPlayerXY to where he is ( as chosen, his spawn point ) but what about Moving this flag to the player ?
Thanks for telling me :) <3

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: ° AntiFlagDrop V1 °
« Reply #14 on: June 28, 2009, 08:29:31 pm »
But Curt, if a player drops the flag... Just for curiosity lulz, instead of killing the player, we will move him to his team Spawn Point ( getting information about it with SetSpawnStat ). Then if i want ( in my script ) to move the flag to this Flag Dropper, i will use GetPlayerXY to where he is ( as chosen, his spawn point ) but what about Moving this flag to the player ?
Thanks for telling me :) <3
There is a ReturnFlag function made. You can probably use this in combination with SetSpawnStat to move the flag anywhere you want, including on the person to give it back.
SetSpawnStat and Flags is a very bad idea.
I havn't done too much with moving the flag, but I don't see why this is a bad idea.