Author Topic: Protect The VIP v1.1b  (Read 5071 times)

0 Members and 1 Guest are viewing this topic.

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Protect The VIP v1.1b
« on: July 31, 2008, 05:17:54 am »
Script Name: Protect The VIP
Script Description: You have to protect your team's VIP and kill the other team's one. Your team gets 1 point for killing the VIP, and the person that killed the VIP gets 5 bonus points, and a new round starts. The VIP that survived the round gets 2 bonus points.
Original Author(s): Norbo_PL (With a little bit... Actually a big bit of help from MetalWarrior, thx m8  :-*)
Core Version: v2.6.3
Code: Its too long to post it here... And if you want to see it, you can just download it, cant you!

ChangeLog:
v1.1-> v1.1b
-Fixed the forceweapon bug (yet again).
-Fixed the person that joined the team that didint have any players and became the vip looses (yet again).
-Fixed some other minor bugs that dont even need to mention here (yet again :D).

v1.0 -> v1.1
-Fixed the forceweapon bug.
-Fixed the person that joined the team that didint have any players and became the vip looses.
-Fixed some other minor bugs that dont even need to mention here.

v1.0
First Realese!

P.S. This is my first script, please comment and rate out of 10 :)

Have Fun!
« Last Edit: August 08, 2008, 04:38:10 am by Norbo »

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Protect The VIP v1.0
« Reply #1 on: July 31, 2008, 09:56:52 am »
I quit making the protect the vip, because I realized that htf is better :p
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #2 on: July 31, 2008, 10:00:09 am »
I quit making the protect the vip, because I realized that htf is better :p
What?

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Protect The VIP v1.0
« Reply #3 on: July 31, 2008, 11:37:28 am »
I started a discussion a while ago
http://forums.soldat.pl/index.php?topic=28593.0

I saw the code, seems pretty nice!
and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it
« Last Edit: July 31, 2008, 11:44:33 am by As de Espada »
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #4 on: July 31, 2008, 11:58:40 am »
I started a discussion a while ago
http://forums.soldat.pl/index.php?topic=28593.0

I saw the code, seems pretty nice!
and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it
Thanks, but im still a beginer so i cant make it without reaprting...

Offline Iq Unlimited

  • Flagrunner
  • ****
  • Posts: 864
  • mr. foobar2000
Re: Protect The VIP v1.0
« Reply #5 on: July 31, 2008, 05:24:49 pm »
and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it

I don't think it really makes a difference, unless you are just that obsessed with OOP.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Protect The VIP v1.0
« Reply #6 on: July 31, 2008, 08:46:49 pm »
make things clearer and more clean
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #7 on: August 01, 2008, 11:23:53 am »
and just for encapsulating purposes, you could do a procedure that's called for AVip and BVip, instead of repeating it

I don't think it really makes a difference, unless you are just that obsessed with OOP.
It makes things clealer indeed, but ill get to that later, atleast i made something!
So do you like it? How would you rate it out of 10?

Date Posted: August 01, 2008, 03:47:03 am
this script will be added to BombSki`s multimode btw ;>

Offline Neosano

  • Camper
  • ***
  • Posts: 253
  • IIAWAK!
Re: Protect The VIP v1.0
« Reply #8 on: August 01, 2008, 01:27:05 pm »
2 or 3, is it necessary to explain why?
KAWAAAAAAAIIIIIIIIII

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #9 on: August 01, 2008, 02:25:21 pm »
2 or 3, is it necessary to explain why?
ehm what?

Offline lewymati

  • Major(1)
  • Posts: 38
Re: Protect The VIP v1.0
« Reply #10 on: August 02, 2008, 04:05:58 am »
imho vip should have some objective, for ex. to get to a flag... Also u should move vips to yellow and green team. It will be easier to determine which player is vip.
It would need some maps where red team spawns from one side, blue from the second, yellow(red's vip) for ex from upper side, green(blue's vip) from bottom side... For example map would be kinda narrow, but high...
Put flags in some places where its hard to get - vips objective would be getting to the flag...

Imho it would be more playable, now its just random killing :E
« Last Edit: August 02, 2008, 05:24:09 am by lewymati »

Offline iDante

  • Veteran
  • *****
  • Posts: 1967
Re: Protect The VIP v1.0
« Reply #11 on: August 02, 2008, 05:36:07 am »
Starting with line 7:
Code: [Select]
procedure killAllAlive();
I think that can become procedure killAllAlive; in pascal. Not 100% sure, and definitely not a big deal.

Code: [Select]
var
alive: byte;
begin
for alive := 1 to 32 do
begin
               {...}
end
end;
Instead of using 'alive' use 'i'. IDK why i is always used for loops, but it is.

Code: [Select]
if (GetPlayerStat(alive,'Active')) = true then
begin
if (GetPlayerStat(alive,'Alive')) = true then
begin
DoDamage(alive,4000);
end
end
=
Code: [Select]
if (GetPlayerStat(alive,'Active')) and (GetPlayerStat(alive,'Alive')) then
DoDamage(alive,4000);

Keep making scripts I likes them :)

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #12 on: August 02, 2008, 09:27:42 am »
Ok thanks for replies guys
iDante: "Keep making scripts I likes them"
this is my first script :O

Offline jezza

  • Major(1)
  • Posts: 9
    • Thermal* community of stick-online
Re: Protect The VIP v1.0
« Reply #13 on: August 04, 2008, 03:08:12 am »
This is awesomeness! I think this would be great fun and i'll consider making a server with this on, maybe even mixed with Counter Strike script! :D

If i do i'll give you and MetalWarrior credit, GJ!

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.0
« Reply #14 on: August 04, 2008, 03:28:33 am »
This is awesomeness! I think this would be great fun and i'll consider making a server with this on, maybe even mixed with Counter Strike script! :D

If i do i'll give you and MetalWarrior credit, GJ!
:D
Thanks Dude :D I didint think this would go anyware futher than multimode :O

Offline adam01526

  • Soldier
  • **
  • Posts: 177
Re: Protect The VIP v1.0
« Reply #15 on: August 04, 2008, 09:08:58 am »
good script thanks a lot 8/10

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.1
« Reply #16 on: August 06, 2008, 04:43:01 pm »
Script added to BombSki's Multimode servers :)

Date Posted: August 06, 2008, 03:06:29 pm
Updated the first post with a new version of the script.

v1.0 -> v1.1
-Fixed the forcewepon bug
-Fixed the person that joined the team that didint have any players and became the vip looses
-Fixed soome other minor bugs that dont even need to mention here.

Offline As de Espada

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1493
  • Mapper
    • My maps
Re: Protect The VIP v1.1
« Reply #17 on: August 06, 2008, 06:46:44 pm »
forgot to mention that only the vip can take flags
All my maps | my latest map: SoldatX Racing Mappack
me making a map on youtube: ctf_FastMade

Offline Norbo

  • Camper
  • ***
  • Posts: 338
Re: Protect The VIP v1.1
« Reply #18 on: August 07, 2008, 03:49:06 am »
forgot to mention that only the vip can take flags
Nobody can take flags because they will be killed immidietly.

Offline adam01526

  • Soldier
  • **
  • Posts: 177
Re: Protect The VIP v1.1
« Reply #19 on: August 07, 2008, 12:08:50 pm »
^^^^^