Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: VinceBros on June 02, 2009, 04:55:59 pm

Title: ° AntiFlagDrop V1 °
Post by: VinceBros on June 02, 2009, 04:55:59 pm
Script Name: AntiFlagDrop
Script Description Anti Drop Flag
Author: VinceBros (http://soldatcentral.com/index.php?page=profile&u=201)
Compile Test: (http://soldatcentral.com/images/pass.gif) Passed
Core Version: 2.6.5
Hosted by: Soldat Central - http://soldatcentral.com/ (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

(http://soldatcentral.com/images/download.gif) (http://soldatcentral.com/dl.php?id=114&act=1)
(Size 842 B)
- http://soldatcentral.com/index.php?page=script&f=114 -


** Script hosted by Soldat Central (http://soldatcentral.com/index.php?page=script&f=114)! Please visit the author's script page (http://soldatcentral.com/index.php?page=script&f=114) and Rate this script **
Title: Re: ° AntiFlagDrop V1 °
Post by: Neosano 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...
Title: Re: ° AntiFlagDrop V1 °
Post by: VinceBros 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
Title: Re: ° AntiFlagDrop V1 °
Post by: Neosano 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.
Title: Re: ° AntiFlagDrop V1 °
Post by: Bonecrusher 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
Title: Re: ° AntiFlagDrop V1 °
Post by: Polifen 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".
Title: Re: ° AntiFlagDrop V1 °
Post by: VinceBros 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
Title: Re: ° AntiFlagDrop V1 °
Post by: Neosano 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.
Title: Re: ° AntiFlagDrop V1 °
Post by: DorkeyDear 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.
Title: Re: ° AntiFlagDrop V1 °
Post by: y0uRd34th 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.
Title: Re: ° AntiFlagDrop V1 °
Post by: DorkeyDear 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?
Title: Re: ° AntiFlagDrop V1 °
Post by: y0uRd34th on June 27, 2009, 03:45:05 pm
Hm, yeah then yes :D
Title: Re: ° AntiFlagDrop V1 °
Post by: Neosano 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..
Title: Re: ° AntiFlagDrop V1 °
Post by: VinceBros 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
Title: Re: ° AntiFlagDrop V1 °
Post by: DorkeyDear 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.