Talk:Counter-Strike: Source/Scripting/VScript Examples: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (→Possible use case: emulating trigger_bomb_reset: new section) |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
== Possible use case: emulating [[trigger_bomb_reset]] == | == Possible use case: emulating [[trigger_bomb_reset]] == | ||
Of course you can just have a {{ent|trigger_teleport}} filtered to {{ent|weapon_c4}} teleport the bomb back to T spawn, but I'm wondering if it might be possible to use vscript to teleport it to an alive T player instead (which would help with pacing). According to [[User:Gazyi|Gazyi]] on Discord, you can attach a [[think]] function to the bomb after OnPostSpawn, but I'm not familiar enough with vscript to figure out how to put that into practice.<br/>— [[User:SirYodaJedi|SirYodaJedi]] ([[User_talk:SirYodaJedi|talk]]) 10:21, 2 April 2025 (PDT) | Of course you can just have a {{ent|trigger_teleport}} filtered to {{ent|weapon_c4}} teleport the bomb back to T spawn, but I'm wondering if it might be possible to use vscript to teleport it to an alive T player instead (which would help with pacing). According to [[User:Gazyi|Gazyi]] on Discord, you can attach a [[think]] function to the bomb after OnPostSpawn, but I'm not familiar enough with vscript to figure out how to put that into practice.<br>Mentioning this here because I figure it's a generic enough desired feature to be worth adding to this page if someone figures it out.<br/>— [[User:SirYodaJedi|SirYodaJedi]] ([[User_talk:SirYodaJedi|talk]]) 10:21, 2 April 2025 (PDT) |
Latest revision as of 10:22, 2 April 2025
Possible use case: emulating trigger_bomb_reset
Of course you can just have a trigger_teleport filtered to weapon_c4 teleport the bomb back to T spawn, but I'm wondering if it might be possible to use vscript to teleport it to an alive T player instead (which would help with pacing). According to Gazyi on Discord, you can attach a think function to the bomb after OnPostSpawn, but I'm not familiar enough with vscript to figure out how to put that into practice.
Mentioning this here because I figure it's a generic enough desired feature to be worth adding to this page if someone figures it out.
— SirYodaJedi (talk) 10:21, 2 April 2025 (PDT)