Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

dod_checkpoint

by h0_noMan · 2007-12-20 · 11 replies · 13504 views · 74 downloads

Read the thread (12 posts)

From the first post

Hi all.
n
nI am a fan of KZ maps and i wanted a plugins to add the possibility to save a location and move to this location after (when you failed a jump for example)
n
nThen i decided to do it by myself. (I am a beginner in DoD Scripting)
n
n
CHANGELOGnnv1.1 : n- Added an unblock command to move if you are blockedn- Simplyfing some code (array)nnv1.2 :n- Removed the unblock commandn- add_checkpoint now add only location that are fine (you shouldnt be blocked in a wall)n- The language can be changed in the SMA by changing the value of languagenn-----------nnCVAR :ndod_checkpoint 1|0 // Enable/Disable the modnn-----------nnConsole commands:nadd_checkpoint   // Save the player's locationngo_checkpoint    // Move the player to his last saved checkpointnnTested on AMX Mod X 1.80

n
nThanks for suggestions and comments.

Files

dod_checkpoint.sma Plugin Source 3 KB 74 dl Download Compile

The thread

All 12 posts from 8 people on dod_checkpoint, kept as they were written.

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
12-19-2007, 09:13 PM #1

Hi all.nnI am a fan of KZ maps and i wanted a plugins to add the possibility to save a location and move to this location after (when you failed a jump for example)nnThen i decided to do it by myself. (I am a beginner in DoD Scripting)nn

CHANGELOGnnv1.1 : n- Added an unblock command to move if you are blockedn- Simplyfing some code (array)nnv1.2 :n- Removed the unblock commandn- add_checkpoint now add only location that are fine (you shouldnt be blocked in a wall)n- The language can be changed in the SMA by changing the value of languagenn-----------nnCVAR :ndod_checkpoint 1|0 // Enable/Disable the modnn-----------nnConsole commands:nadd_checkpoint   // Save the player's locationngo_checkpoint    // Move the player to his last saved checkpointnnTested on AMX Mod X 1.80
nnThanks for suggestions and comments.

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
12-20-2007, 01:30 AM #2

Looks great man. Very concise and well formatted. I replied to your post in scripting help; that is a small fix that would be a bit better.nnIn addition, you do something that is not necessary in here.nn

n    	    new origin[3]		n            get_user_origin(id, origin, 1)n            checkpoint[id][0] = origin[0]n            checkpoint[id][1] = origin[1]n            checkpoint[id][2] = origin[2]n
nnSince checkpoint[33][3] is a global variable, you can have the get_user_origin() function dump into it directly instead of dumping into a temporary variable and then copying that variable into the global one.nFor example,nn
nget_user_origin( id, checkpoint[id], 1)n
nnThe same goes for your set_user_origin() code in the go_checkpoint function. Just use the checkpoint variable directly.nnGreat job, keep em coming!

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
12-20-2007, 04:57 AM #3

Thanks Wilson.rnrnCorrected this and added a new function to unblock (go to the checkpoint saved just before the last one).rnrnI am working on a way to detect if the checkpoint is ok before teleporting.

| |OnEHiTwOnDeR|SoCal
posted here
Posts: 320
Threads: 37
Joined: Mar 2007
12-20-2007, 12:45 PM #4

not to go off topic but kz maps? they have those for dod ?

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
12-20-2007, 01:21 PM #5

Some KZ maps are ported to dod.rnrnThose maps works well on my DoD Server :rnrndod_kz_kzfr_treeclimb.bsprndod_kz_sk_proclimbing.bsprnkz_kzfr_statueofliberty.bsprnrnNot KZ but my plugins is usefull for those maps too :rnrndod_stunt.bsprndod_stuntparty_b3.bsprndod_wootzor_v2.bsp

blobby
posted here
Posts: 421
Threads: 47
Joined: Apr 2007
12-20-2007, 08:36 PM #6

Im gonna grab those maps and you have listed here and test out your plugin for you ill let you know how it goes m8y looks cool tho have never even played kz b4 but ill tell you if all works XD

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
12-21-2007, 01:02 PM #7
rnI am working on a way to detect if the checkpoint is ok before teleporting.
rnrnhttp://forums.alliedmods.net/showpost.php?p=404439&postcount=4

{DwP} 325th ABN
posted here
Posts: 231
Threads: 12
Joined: Aug 2006
12-30-2007, 11:51 PM #8

sounds like a great consept im in to ill let you know how it goes. where can we find those maps

I Is3
posted here
Posts: 6
Threads: 1
Joined: Jun 2008
10-05-2008, 11:37 AM #9
Some KZ maps are ported to dod.rnrnThose maps works well on my DoD Server :rnrndod_kz_kzfr_treeclimb.bsprndod_kz_sk_proclimbing.bsprnkz_kzfr_statueofliberty.bsprnrnNot KZ but my plugins is usefull for those maps too :rnrndod_stunt.bsprndod_stuntparty_b3.bsprndod_wootzor_v2.bsp
rnrnrnWhere I can find those maps ?

H h0_noMan
started this thread
Posts: 80
Threads: 11
Joined: Dec 2007
10-05-2008, 05:47 PM #10

On the Frag'n Lag Clan Site.

R Randomnium
posted here
Posts: 1
Threads: 0
Joined: Sep 2007
03-03-2009, 11:11 AM #11

on that "Frag'n Lag Clan Site" is all the links down.. anyone know any other links to the maps?rn(ps i know the post is old, but i would like to find the maps anyway ^^ )

T thanatopsizer
posted here
Posts: 21
Threads: 4
Joined: Nov 2006
04-27-2010, 04:59 PM #12

I found a few of the maps for anyone interested... you can get them herennhttp://www.dusty-clan.net/download.php?list.1nnThis looks like it will be some fun to try.

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC