Skip to content

Commit

Permalink
fixed spawn items bug (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Oct 31, 2016
1 parent 3dd1edd commit a5693ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1186
1192
7 changes: 5 additions & 2 deletions gamemodes/sss/core/player/spawn.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,18 @@ forward OnPlayerSpawnChar(playerid);
forward OnPlayerSpawnNewChar(playerid);


hook OnScriptInit()
hook OnGameModeInit()
{
print("\n[OnScriptInit] Initialising 'Player/Spawn'...");
print("\n[OnGameModeInit] Initialising 'Player/Spawn'...");

new bagtype[ITM_MAX_NAME];

GetSettingString("spawn/bagtype", "Satchel", bagtype);
spawn_BagType = GetItemTypeFromUniqueName(bagtype, true);

if(!IsValidItemType(spawn_BagType))
printf("ERROR: spawn/bagtype item name '%s' results in invalid item type %d", bagtype, _:spawn_BagType);

// todo: make this better.
spawn_ReSpawnItems[0][e_itmobj_type] = item_AntiSepBandage;
spawn_ReSpawnItems[1][e_itmobj_type] = item_Knife;
Expand Down

0 comments on commit a5693ef

Please sign in to comment.