A couple PropSpawner changes #5

Open
Irineu wants to merge 7 commits from Irineu/sm-plugins:master into master
Contributor

Changes are:

  • There's now a menu option to choose a couple preset colors for your props, as well as a cmd called sm_setpropcolor for custom colors.
  • You can now choose with sm_propspawner_use_mode what should happen when a plugin spawned prop is +use'd. If set to 1, the prop will not be able to be moved by CTs. If set to 2 and a CT moves it, they will be added to the notify list.
  • Plugin spawned props will no longer collide with func_clip_vphysics entities.
  • Plugin spawned props will be set to CT team if sm_propspawner_notify_shot is set.
  • The channel used in ShowHudText for the notify list hud will change every once in a while, to avoid collisions. Also fixed the issue where it would change position on screen depending on how many lines it had.

Any change that mentions "plugin spawned props" will not work unless sm_propspawner_notify_shot is set at the moment the prop is spawned, due to how g_aSpawnedProps works. I believe its original purpose of unhooking SDKHook_OnTakeDamage may be unnecessary (see https://forums.alliedmods.net/showthread.php?t=291921), and it would perhaps be better to change this so all props are added to g_aSpawnedProps always.

Changes are: - There's now a menu option to choose a couple preset colors for your props, as well as a cmd called sm_setpropcolor for custom colors. - You can now choose with sm_propspawner_use_mode what should happen when a plugin spawned prop is +use'd. If set to 1, the prop will not be able to be moved by CTs. If set to 2 and a CT moves it, they will be added to the notify list. - Plugin spawned props will no longer collide with func_clip_vphysics entities. - Plugin spawned props will be set to CT team if sm_propspawner_notify_shot is set. - The channel used in ShowHudText for the notify list hud will change every once in a while, to avoid collisions. Also fixed the issue where it would change position on screen depending on how many lines it had. Any change that mentions "plugin spawned props" will not work unless sm_propspawner_notify_shot is set at the moment the prop is spawned, due to how g_aSpawnedProps works. I believe its original purpose of unhooking SDKHook_OnTakeDamage may be unnecessary (see https://forums.alliedmods.net/showthread.php?t=291921), and it would perhaps be better to change this so all props are added to g_aSpawnedProps always.
Irineu added 7 commits 2026-09-13 04:47:40 +02:00
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://localhost:3000/Irineu/sm-plugins master:Irineu-master
git checkout Irineu-master
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UNLOZE/sm-plugins#5