Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Usually in CTL, the goal is to capture the enemy lolly and bring it back to your base. In 1LC, the concept changes to capture a neutral lolly in the center of the map and bring it to the enemy base, where the enemy lolly is usually located. In 1LC, the lolly models at the bases cannot be captured. They just mark the position where you have to bring the neutral lolly to score points. To avoid confusion and to distinguish the 1LC game type from CTL, we want to change the appearance of the red and blue lollipops in 1LC. They should appear as non-material holographic lollipops to indicate that they cannot be picked up by the player. So the goal is to replace the default red or blue lollipop models with the new red or blue holo models.
Corresponding item models are defined in bg_itemlist in bg_misc.c. The goal is to change the default model path only in 1LC from
So the idea is to change the model path on item spawn. As far as I can see, game and cgame get the model path from the item list, so there is no need to load the holo lolly assets in cg_main.c, but I could be wrong. Also, the model paths should remain untouched in CTL game mode.
Useful commands: