Raised This Month: $51 Target: $400
 12% 

deathrun map pass


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stinkyfax
BANNED
Join Date: Aug 2007
Old 07-15-2012 , 10:23   deathrun map pass
Reply With Quote #1

Simple but yet have no idea how to make.
Consider deathrun map, I want to give CT a cookie once they pass the map, how can I 'hook' the "event" of person finishing the map?
I've heard it adds +frag in scores table but killing adds frags too, while no cookies should go to murderers.

Last edited by Stinkyfax; 07-15-2012 at 10:23.
Stinkyfax is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-15-2012 , 12:44   Re: deathrun map pass
Reply With Quote #2

Throw a trigger_multiple at the end of the map, hook SDK_OnStartTouch, give client cookie on touch. Something along that line should suffice.
__________________
thetwistedpanda is offline
Stinkyfax
BANNED
Join Date: Aug 2007
Old 07-15-2012 , 13:02   Re: deathrun map pass
Reply With Quote #3

Quote:
Originally Posted by thetwistedpanda View Post
Throw a trigger_multiple at the end of the map, hook SDK_OnStartTouch, give client cookie on touch. Something along that line should suffice.
But I don't know the end of map, and going through 100 deathrun to gather coordinates maps is not a solution

Haven't the map creators considered creating some trigger? They couldn't accept a though that someone might want to write a plugin for their maps?

Last edited by Stinkyfax; 07-15-2012 at 13:02.
Stinkyfax is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 07-15-2012 , 14:54   Re: deathrun map pass
Reply With Quote #4

You'd have to do it manually for each map, there's no way around that as maps are not uniform - you should be able to create it via a script, as I recall there being a snippit to create brush entities. It may take a good bit of your time, but it's a fool proof method. Can even load the maps into hammer, make the entity the right size, grab coordinates, then load it into a script that re-creates them without having to download a new map.

That's just the easiest method that comes to mind. Alternatively you can set a single area per map and just loop distances to see if they're within x units, but that's far more intensive. All maps are different so you can't rely on using teleporters, grabbing weapons, hooking bhop platforms, etc. Although you could write an overly complex system that uses pre-defined configurations as to what methods you want to hook. A plugin that manages picking up weapons, bhop platforms, killing the T, etc and simply tell the plugin what methods to use for what map.
__________________

Last edited by thetwistedpanda; 07-15-2012 at 14:59.
thetwistedpanda is offline
TheHardstyleBro
Senior Member
Join Date: Jun 2012
Location: Netherlands
Old 07-15-2012 , 15:14   Re: deathrun map pass
Reply With Quote #5

Isn't there an plugin that detects where the player is like cP mod but then without the bhop stuff
__________________
TheHardstyleBro is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-15-2012 , 20:59   Re: deathrun map pass
Reply With Quote #6

Quote:
Originally Posted by TheHardstyleBro View Post
Isn't there an plugin that detects where the player is like cP mod but then without the bhop stuff
CP uses a data base, when ever you add a new map, you have to add the starting area and the ending area. no way aroud it, epecially if the map is old.
Mitchell is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode