Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Holololly #337

Merged
merged 4 commits into from
Nov 29, 2024
Merged

Holololly #337

merged 4 commits into from
Nov 29, 2024

Conversation

kai-li-wop
Copy link
Member

@kai-li-wop kai-li-wop commented Nov 27, 2024

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

  • models/ctl/lollipop_red --> models/ctl/lollipop_red_holo
  • models/ctl/lollipop_blue --> models/ctl/lollipop_blue_holo

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:

  • sv_pure 0
  • developer 1
  • g_gametype 9
  • devmap wop_westernsetCTL
  • setviewpos -380 729 514 8 6 --> to see the red lolly
  • setviewpos -1175 -4963 547 18 -177 --> to see the blue lolly

@kai-li-wop kai-li-wop added the enhancement New feature or request label Nov 27, 2024
@kai-li-wop kai-li-wop added this to the v1.7.0 milestone Nov 27, 2024
@kai-li-wop kai-li-wop requested a review from mgerhardy November 27, 2024 15:22
@kai-li-wop kai-li-wop self-assigned this Nov 27, 2024
@kai-li-wop kai-li-wop added the help wanted Extra attention is needed label Nov 27, 2024
@kai-li-wop kai-li-wop marked this pull request as ready for review November 29, 2024 19:46
@kai-li-wop kai-li-wop merged commit 225bd9b into main Nov 29, 2024
10 of 12 checks passed
@kai-li-wop kai-li-wop deleted the holololly branch November 29, 2024 19:55
@kai-li-wop kai-li-wop removed the help wanted Extra attention is needed label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants