PDA

View Full Version : dod_checkpoint


h0_noMan
12-19-2007, 09:13 PM
Hi all.

I 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)

Then i decided to do it by myself. (I am a beginner in DoD Scripting)

CHANGELOG

v1.1 :
- Added an unblock command to move if you are blocked
- Simplyfing some code (array)

v1.2 :
- Removed the unblock command
- add_checkpoint now add only location that are fine (you shouldnt be blocked in a wall)
- The language can be changed in the SMA by changing the value of language

-----------

CVAR :
dod_checkpoint 1|0 // Enable/Disable the mod

-----------

Console commands:
add_checkpoint // Save the player's location
go_checkpoint // Move the player to his last saved checkpoint

Tested on AMX Mod X 1.80

Thanks for suggestions and comments.

Wilson [29th ID]
12-20-2007, 01:30 AM
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.

In addition, you do something that is not necessary in here.


new origin[3]
get_user_origin(id, origin, 1)
checkpoint[id][0] = origin[0]
checkpoint[id][1] = origin[1]
checkpoint[id][2] = origin[2]


Since 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.
For example,


get_user_origin( id, checkpoint[id], 1)


The same goes for your set_user_origin() code in the go_checkpoint function. Just use the checkpoint variable directly.

Great job, keep em coming!

h0_noMan
12-20-2007, 04:57 AM
Thanks Wilson.

Corrected this and added a new function to unblock (go to the checkpoint saved just before the last one).

I am working on a way to detect if the checkpoint is ok before teleporting.

|OnEHiTwOnDeR|SoCal
12-20-2007, 12:45 PM
not to go off topic but kz maps? they have those for dod ?

h0_noMan
12-20-2007, 01:21 PM
Some KZ maps are ported to dod.

Those maps works well on my DoD Server :

dod_kz_kzfr_treeclimb.bsp
dod_kz_sk_proclimbing.bsp
kz_kzfr_statueofliberty.bsp

Not KZ but my plugins is usefull for those maps too :

dod_stunt.bsp
dod_stuntparty_b3.bsp
dod_wootzor_v2.bsp

blobby
12-20-2007, 08:36 PM
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]
12-21-2007, 01:02 PM
I am working on a way to detect if the checkpoint is ok before teleporting.

http://forums.alliedmods.net/showpost.php?p=404439&postcount=4

{DwP} 325th ABN
12-30-2007, 11:51 PM
sounds like a great consept im in to ill let you know how it goes. where can we find those maps

Is3
10-05-2008, 12:37 PM
Some KZ maps are ported to dod.

Those maps works well on my DoD Server :

dod_kz_kzfr_treeclimb.bsp
dod_kz_sk_proclimbing.bsp
kz_kzfr_statueofliberty.bsp

Not KZ but my plugins is usefull for those maps too :

dod_stunt.bsp
dod_stuntparty_b3.bsp
dod_wootzor_v2.bsp


Where I can find those maps ?

h0_noMan
10-05-2008, 06:47 PM
On the Frag'n Lag (http://fragnlag.jlsgamingnetwork.com/index.php?page_id=17) Clan Site.

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

thanatopsizer
04-27-2010, 05:59 PM
I found a few of the maps for anyone interested... you can get them here

http://www.dusty-clan.net/download.php?list.1

This looks like it will be some fun to try.