zm_score::add_to_player_score()
Gives the player points. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
zm_score::add_to_player_score(points, b_add_to_total = 1, str_awarded_by = "")
Needs #using the script that defines it (scripts/zm/_zm_score.gsc).
Parameters
| Name | Details |
|---|---|
| points | |
| b_add_to_total | default: 1 |
| str_awarded_by | default: "" |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 39 times in the decompiled scripts. A few, zombies first:
- scripts/zm/_zm_ai_spiders.gsc, line 2702
self zm_score::add_to_player_score(var_86b6ca3c); - scripts/zm/_zm_bgb_machine.gsc, line 812
user zm_score::add_to_player_score(self.current_cost, 0, "bgb_machine_ghost_ball"); - scripts/zm/_zm_devgui.gsc, line 2634
self zm_score::add_to_player_score(100000); - scripts/zm/_zm_equip_hacker.gsc, line 116
players[i] zm_score::add_to_player_score(int(score)); - scripts/zm/_zm_hackables_boards.gsc, line 83
hacker zm_score::add_to_player_score(100);
More in zm_score::
- zm_score::minus_to_player_score()Takes points from the player.
- zm_score::player_add_points()Gives the player points for an event (kill, damage...), applying multipliers.
- zm_score::can_player_purchase()True if the player has enough points for a cost.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).