Author Topic: MountainClimbing 1.7  (Read 15078 times)

0 Members and 1 Guest are viewing this topic.

DarkCrusade

  • Guest
MountainClimbing 1.7
« on: April 26, 2010, 06:54:49 am »
Full Description:
Script Name: MountainClimbing 1.7
Script Description Climb Mode
Author: DarkCrusade
Compile Test: Passed
Core Version: 2.6.5
Hosted by: Soldat Central - http://soldatcentral.com/

Full Description:
MountainClimbing was pretty famous one year back and I didn't find any scripts for it so I decided to code it myself. The result was version 1.0. I worked further on the script and added more features for admins and users, check the new script!

The point of MountainClimbing is, that the player climbs up a mountain with nothing more than his hands and feet. If he falls, he falls hard and looses health, so basically it's a more extreme version of climbing. The maps are huge and you need a lot of practice to master this gamemode!

Since BattleyEye is gone I added a MassFlag detection that is pretty basic but working. Hackers will be banned and reported to the admin console with IP and name for further punishment should they decide to come back with a changed IP.

v1.7 update:
-fixed (hopefully) all bugs

V1.69 update:
-changed the highscore table (creates a file for every map in the maplist.txt)
-fixed !heal
-fixed the interface
-fixed the access violation for Linux hosters 

V1.65 update:
-added more admin commands
-added idle kicker
-added map highscores
-added interface that shows you power/saves ...
-added MassFlag detection
-fixed !nextmap
-fixed /move (to move players to yourself use /port)

V1.2 update:
-added !undo command for players
-added admin commands (list below)
-limited hardcoding stuff

V1.0 includes:
- Save/Load system
- HP regeneration (as long as a players health is below 50)
- Nextmap vote
- AntiBravo
- !heal command

Also you can adjust everything at the top of the script such as vote percentage or how often you can save/load/heal and such stuff. I release this script to see - hopefuly - some MountainClimbing servers again. Here are some links to mountainclimbing maps:

Download Mappack
Bruns Summit v3
Eisberg
Canyon
BlackRock
Devils Cleft

The list contains only the best maps for the gamemode, there are more but you loose the 'feeling the mountain' effect due to their crappy looks. If this mode gets famous again I won't refrain from making new maps so it won't get abandoned again.

SETTINGS: ------------------------------------
Mode: CTF
Playerlimit: -
Speclimit: 1
Weapons: none
Realistic: On

ADMINCOMMANDS: -----------------------------
/acommands                Display all admin commands
/setpower <Value>       MaxPower setting for !health
/setsaves  <Value>       MaxSaves  setting for !save
/setloads  <Value>       MaxLoads  setting for !load
/setlimit    <Value>       VoteLimit  setting for !nextmap
/setreg     <Value>       Health regeneration rate
/setidle     <Value>       Maximum idle time in spectator
/setregl    <Value>       Limit for health regeneration
/move <ID1> <ID2>     Move ID1 to ID2, ID2 may not be your own
/port <ID1> ... <ID3>  Move up to 3 IDs to your position
/god        <ID>            Grant god powers to <ID> (no damage by falling)
/resettimers                 Reset all timers
/showtimers                 Displays everyones time
/resethigh                    Reset the highscores

This is the old version. Due to problems that occured at SoldatCentral that have not been fixed yet you must please click on this link: Mirror


(Size 6.66 KB)
- http://soldatcentral.com/index.php?page=script&f=189 -


** Script hosted by Soldat Central! Please visit the author's script page and Rate this script **
« Last Edit: July 17, 2010, 09:37:12 am by DarkCrusade »

Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: MountainClimbing 1.0
« Reply #1 on: April 26, 2010, 09:00:58 am »
1. Try to use some prefixes for consts referring to same kind of thing, in example put "cl" in front of colors.
2. You should add /undo for people who save in wrong place and get killed on respawn.
3. Chat commands SUCK.
4. Limit hardcoding stuff, in example amount of heal per second, it should be a const.

That's quite all. Haven't expected such a clear code from you...

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: MountainClimbing 1.0
« Reply #2 on: April 26, 2010, 10:08:19 am »
Relating to code convention: you sometimes use 2 spaces, other times have a tab; i guess from copy pasting from other scripts, but would be nice if its all the same ^^

FirstJoin not a boolean? O.o

good job tho
« Last Edit: April 26, 2010, 10:09:53 am by DorkeyDear »

DarkCrusade

  • Guest
Re: MountainClimbing 1.0
« Reply #3 on: April 27, 2010, 06:12:59 am »
@Curt: The script is mine to 100%. No copy/paste stuff. I'll take a look at what you've mentioned. The thing about FirstJoin was doable in different ways, I've only chosen one possible :P

@Gizd: Colors are already described as colors, I don't need to use a prefix for them, the /undo command sounds like a good idea, though. But why do chat commands suck? I don't understand what's wrong about them, and they are what most Soldat players understand. You know those noobs who cannot get a hang of what a slash is about and just leave instead of try for a few minutes so I just left it like that.

@Mr Dominikk:
1: Never ever post such a big code like that. Delete it.
2: You will never ever need nades for mountainclimbing.
« Last Edit: April 27, 2010, 07:17:53 am by DarkCrusade »

Offline Bistoufly

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 782
Re: MountainClimbing 1.0
« Reply #4 on: April 27, 2010, 09:59:59 am »
Greetings

Wow Mountain climbing :)

I've missed this so much. Hope someone is willing to host this mode again.

One thing tho: Please remove the save/load function. It's the plague of climbing servers.
And it really doesn't fit mountain climbing at all.

Anyway thank you for the time and effort you put in this.

DarkCrusade

  • Guest
Re: MountainClimbing 1.0
« Reply #5 on: April 27, 2010, 11:01:36 am »
When you host the script with the maps you are able to configurate the settings for the scripts. Everything is described in the script, just set save and load = 0 ;)

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: MountainClimbing 1.0
« Reply #6 on: April 27, 2010, 01:39:49 pm »
@DarkCrusade: I didn't mean to imply you stealing off of other people; just mean copy paste (from wherever, including your old scripts / a copy of the same script / wahtever); Guess coding style transition :P


Offline Gizd

  • Flagrunner
  • ****
  • Posts: 586
  • (Re)tired
    • Eat-this! community site
Re: MountainClimbing 1.0
« Reply #7 on: April 28, 2010, 09:22:24 am »
@Gizd: Colors are already described as colors, I don't need to use a prefix for them
You don't need to use next-line-chars as well...

But why do chat commands suck? I don't understand what's wrong about them, and they are what most Soldat players understand. You know those noobs who cannot get a hang of what a slash is about and just leave instead of try for a few minutes so I just left it like that.
It's their problem and noone likes to see other people's commands. Chat commands are only used for stuff affecting ALL players so they can see who caused that.

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: MountainClimbing 1.0
« Reply #8 on: April 29, 2010, 12:00:06 am »
Cool, i could host it for one more time ( mix it with my climb, some vote to turn it on/off ), but i also need maps, do you still have 'em with textures and sceneries?

Edit: Also, medkits are better than HP regeneration.
« Last Edit: April 29, 2010, 12:06:11 am by Polifen »

DarkCrusade

  • Guest
Re: MountainClimbing 1.0
« Reply #9 on: April 29, 2010, 12:53:29 am »
@Curt: I wasn't able to find any line that included a tab, if you want, show me the relevant lines and I'll fix it.
@Gizd: Playability > Looks
@Polifen: I'll add links to the maps asap! Right now I'm working on 1.2 which will include some admin commands and stuff like that, also I reduce the amount of hardcoding for the sake of being able to configure the script a little more :P

Offline smiluu

  • Flagrunner
  • ****
  • Posts: 673
  • Put your farts in my pussy
    • LOLOKAUST MSPAINT PLEASURE POND
Re: MountainClimbing 1.0
« Reply #10 on: April 29, 2010, 01:02:53 am »
Wasn't one of the major points of mountain climbing that you die if you keep falling too much?

DarkCrusade

  • Guest
Re: MountainClimbing 1.0
« Reply #11 on: April 29, 2010, 01:33:55 am »
Indeed

Offline Polifen

  • Soldier
  • **
  • Posts: 127
Re: MountainClimbing 1.2
« Reply #12 on: April 29, 2010, 02:39:05 am »
That's why i prefer medkits than health regeneration, but i will do it on myself :).

DarkCrusade

  • Guest
Re: MountainClimbing 1.2
« Reply #13 on: April 29, 2010, 09:02:11 am »
I'd be willing to create more maps for MountainClimbing if you host the script, 5 maps sound like a little amount, right? :S

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: MountainClimbing 1.2
« Reply #14 on: April 29, 2010, 09:35:00 am »
Some things I noticed while looking at the code:
!undo should kill the player aswell deleting his last save position or it would make no sense.
It says in a message to use !health to regenerate Hp, but the command actually is !heal.
I'd like to see that the message is sent to everyone on the server when an admin changes a setting.



Good work btw.
I'd liked to try it when someone is willing to set up an server..

DarkCrusade

  • Guest
Re: MountainClimbing 1.2
« Reply #15 on: April 29, 2010, 11:35:25 am »
You are so right, Swomp ... the way I coded it it would totally be abused a lot ...

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: MountainClimbing 1.2
« Reply #16 on: April 29, 2010, 11:48:42 am »
You are so right, Swomp ... the way I coded it it would totally be abused a lot ...
Just saying the truth and stuff you could improve :] I like to have my scripts as perfect as I can, Idk how you like them.. ;P

DarkCrusade

  • Guest
Re: MountainClimbing 1.2
« Reply #17 on: April 29, 2010, 11:51:40 am »
No I didn't say you were talking trash, you are right

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: MountainClimbing 1.2
« Reply #18 on: April 29, 2010, 12:03:42 pm »
Oh, come'on!

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: MountainClimbing 1.2
« Reply #19 on: April 29, 2010, 04:46:25 pm »
Lines with tabs: 36, 37, 38; 39 (after end;); 48; 55; 63; 86 (again after end;); 92, 93, 94; 95; 96 (after end;); 109 (before a comment), 110, and many more. Yay for Notepad++'s search function. Its extremely nice to "search all" it has a little window which highlights everything (unfortunately not in the edit window; like in open office where you can select text in more than one location and edit); not sure if you have Notepad++ tho, but it is nice :)
I hope that wasn't too abrupt (uhm im not sure if that was the word i was looking for xD) i didn't wanna sound mean / like a bad person in any of my comments.