PDA

View Full Version : Scoring


gunsofnavarone
12-23-2009, 11:35 AM
Is there a way in Valve Hammer Editor to award points to a player, but those points are not part of winning the map?

In 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.

Or, would this have to be done through a plug-in?

Sohood
12-27-2009, 04:35 PM
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.

Try using a dod_control_point, give it a point_index of -1 tied to a dod_score_ent.

You 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.

gunsofnavarone
12-28-2009, 08:59 AM
First, several points I guess need to be addressed here.

To 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.

Why 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.

The 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"

Won't either of the above suggested examples add to the games team scores? Because as I said, I only want to reward the player.

Forgive 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.

gunsofnavarone
12-28-2009, 09:04 AM
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.

I'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
01-02-2010, 07:44 PM
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!

*Note to myself* SAVE OFTEN even on a forum.

ok, 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.

{
"origin" "2416 1245 230"
"angles" "0 0 0"
"targetname" "easter_egg"
"point_index" "6_allies" "1"
"point_hud_icon_axis" "2"
"point_reset_model" "models/w_wflag.mdl"
"point_axis_model" "models/w_gflag.mdl"
"point_allies_model" "models/w_aflag.mdl"
"point_can_axis_touch" "1"
"point_can_allies_touch" "1"
"point_points_for_cap" "1"<------------------Individual points.
"point_name" "Map Secret"
"spawnflags" "1"
"classname" "dod_control_point"
}
{
"model" "*102"
"origin" "-1200 400 -20"
"area_hud_sprite" "sprites/mapsprites/caparea.spr"
"target" "easter_egg"
"target_name" "kill_secret_points"
"area_time_to_cap" "1"
"area_axis_numcap" "1"
"area_allies_numcap" "1"
"area_allies_cancap" "1"
"area_axis_cancap" "1"
"classname" "dod_capture_area"
}
{
"origin" "672 352 -288"
"targetname" "easter_egg"
"target" "kill_secret_points"
"delay" "1"
"spawnflags" "1"
"classname" "trigger_relay"
}

These 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.

Cheers!,

gunsofnavarone
01-04-2010, 08:00 PM
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.

Thanx again.

Sohood
01-05-2010, 06:46 PM
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.