Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
7 posts, 2 people · 3,977 views Thread Rating: ★★★★★
closedScoring
Started by gunsofnavarone on 12-23-2009, 12:35 PM
G gunsofnavarone
started this thread
Posts: 159
Threads: 28
Joined: Sep 2008
12-23-2009, 12:35 PM #1

Is there a way in Valve Hammer Editor to award points to a player, but those points are not part of winning the map?rnrnIn other words, if when I'm building maps, and I place an "Easter Egg" in the map, that the player who finds it, gets awarded x-points, but it doesn't apply to winning the map, so if nobody finds the easter egg, then the map is still won by capturing the standard flags.rnrnOr, would this have to be done through a plug-in?

Sohood
posted here
Posts: 92
Threads: 33
Joined: Sep 2008
12-27-2009, 05:35 PM #2

Would you have the "easter egg" be a one time deal or multiple uses? Here's a few ways you can achieve this without a plugin.rnrnTry using a dod_control_point, give it a point_index of -1 tied to a dod_score_ent.rnrnYou can also try a dod_object sitting on top of a dod_object_goal, that way when they do pick it up, it automatically scores.

G gunsofnavarone
started this thread
Posts: 159
Threads: 28
Joined: Sep 2008
12-28-2009, 09:59 AM #3

First, several points I guess need to be addressed here.rnrnTo answer your question, I would think the "easter egg" should be a one time deal. This way a player doesn't keep returning and upping his own score.rnrnWhy does the dod_control_point need a negative value for point_index? Though I have seen this often, I've never seen the explanation for this.rnrnThe dod_score_ent, according to the VERC here says, "Used to trigger the "end" of a round, award points to a winning team, and possibly move on to a new map. Usually triggered by a dod_control_point_master or dod_timer upon round end because one team wins. " I don't wish to trigger the end of a round or award points to a team. I only want to award points to the single player who "finds" the "easter-egg"rnrnWon't either of the above suggested examples add to the games team scores? Because as I said, I only want to reward the player.rnrnForgive me, I'm not trying to give you a hard time. Though I have been mapping for awhile now, there is still much I'm trying to learn and have yet to learn, and have not learned all the "ins and outs" of the various entities and such.

G gunsofnavarone
started this thread
Posts: 159
Threads: 28
Joined: Sep 2008
12-28-2009, 10:04 AM #4

BTW, this whole idea was just a thought of sort of "trade marking" a map that I make in the future. I thought if I planted a sort of "find waldo" in my maps, it might be both kind of fun and again, setting my mark on my maps.rnrnI've used custom wads to add to my maps that I'm the creator of a map, and this in and of itself is not necessarily a bad thing, I just thought that the above (easter-egg idea) would further "enhance" it.

Sohood
posted here
Posts: 92
Threads: 33
Joined: Sep 2008
01-02-2010, 08:44 PM #5

GOD DAMN:eek:IT!!!!!!!!!!!!!!!!!!!!!!!!!!!:o Not at anyone here. I just lost a huge frickin post "frustrating" wasn't my fault either, the forum did this!!! Had to re-log in was taking so long and erased it!rnrn*Note to myself* SAVE OFTEN even on a forum.rnrnok, guns sorry but I had a detail way of showing you with thorough explainations but that isn't going to happen, so here is a quick bypass.rnrn{rn"origin" "2416 1245 230"rn"angles" "0 0 0"rn"targetname" "easter_egg"rn"point_index" "6_allies" "1"rn"point_hud_icon_axis" "2"rn"point_reset_model" "models/w_wflag.mdl"rn"point_axis_model" "models/w_gflag.mdl"rn"point_allies_model" "models/w_aflag.mdl"rn"point_can_axis_touch" "1"rn"point_can_allies_touch" "1"rn"point_points_for_cap" "1"<------------------Individual points.rn"point_name" "Map Secret"rn"spawnflags" "1"rn"classname" "dod_control_point"rn}rn{rn"model" "*102"rn"origin" "-1200 400 -20"rn"area_hud_sprite" "sprites/mapsprites/caparea.spr"rn"target" "easter_egg"rn"target_name" "kill_secret_points"rn"area_time_to_cap" "1"rn"area_axis_numcap" "1"rn"area_allies_numcap" "1"rn"area_allies_cancap" "1"rn"area_axis_cancap" "1"rn"classname" "dod_capture_area"rn}rn{rn"origin" "672 352 -288"rn"targetname" "easter_egg"rn"target" "kill_secret_points"rn"delay" "1"rn"spawnflags" "1"rn"classname" "trigger_relay"rn}rnrnThese group of entities will reset every map cap out unless you don't have that field set in your dod_score_ent. If this does not work my friend, no worries because I always have an ace hiding up my sleeve ahahaaha. If this technique won't work to your satisfaction let us try env_globals but for now try this.rnrnCheers!,

G gunsofnavarone
started this thread
Posts: 159
Threads: 28
Joined: Sep 2008
01-04-2010, 09:00 PM #6

Thanx man. I'll give 'er a go. I may not have an opportunity for a few days to get to it, but I appreciate it, and I'll certainly let you know one way or the other how she worked out.rnrnThanx again.

Sohood
posted here
Posts: 92
Threads: 33
Joined: Sep 2008
01-05-2010, 07:46 PM #7

Come to think off it? I'm not entirely sure if that will turn off your capture area;however there is a way with setting it a master to turn off upon capturing. I will post an idea here soon.

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