This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import bpy | |
| from collections import defaultdict | |
| def get_texture_image(obj): | |
| """Returns the image texture of the first image node in the first material.""" | |
| if not obj.data.materials: | |
| return None | |
| mat = obj.data.materials[0] | |
| if mat and mat.use_nodes: | |
| for node in mat.node_tree.nodes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class_name Voice | |
| extends Node | |
| const VOIP = preload("res://Scenes/Player/voip.tscn") | |
| const REF_SAMPLE_RATE : int = 44100 | |
| @export var use_loopback: bool = false | |
| var current_sample_rate: int = 48000 | |
| var local_playback: AudioStreamGeneratorPlayback = null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func target_enemy() -> void: | |
| Player.target_enemy = null | |
| var enemies_in_range : Array[Area2D] = get_overlapping_areas() | |
| if enemies_in_range.size() > 0: | |
| enemies_in_range = enemies_in_range.slice(0, 100) | |
| can_fire = true | |
| for enemy : Node2D in enemies_in_range: | |
| # Always target boss if in range | |
| if enemy.is_in_group("boss"): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "schemaVersion": 2, | |
| "templateId": "php/8.2.27" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Node | |
| enum Pitch {UP, DOWN, NONE, RANDOM} | |
| var num_players: int = 8 | |
| var bus: String = "SFX" | |
| var available: Array = [] # The available players. | |
| var queue: Array = [] # The queue of sounds to play. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shader_type canvas_item; | |
| uniform sampler2D noise_texture: repeat_enable, filter_nearest; | |
| uniform sampler2D screen_texture: hint_screen_texture, repeat_disable, filter_nearest; | |
| uniform vec2 position = vec2(0,0); | |
| uniform float move_x = 1.0; | |
| uniform float move_y = 1.0; | |
| void vertex() { | |
| // Called for every vertex the material is visible on. | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extends Node | |
| var debug: bool = OS.has_feature("debug") | |
| @onready var panel: Panel = Panel.new() | |
| @onready var canvas_layer: CanvasLayer = CanvasLayer.new() | |
| @onready var rich_text_label: RichTextLabel = RichTextLabel.new() | |
| # @onready var theme: Theme = load("res://SurvivalScape.theme") # Your custom theme file | |
| func _ready() -> void: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "VOIPEnabled": true, | |
| "VOIPIssuer": "", | |
| "VOIPSecret": "", | |
| "VOIPAppUserId": "", | |
| "VOIPAppUserPwd": "", | |
| "VOIPVivoxDomain": "", | |
| "VOIPAPIEndpoint": "", | |
| "VOIPConversationalDistance": 14, | |
| "VOIPAudibleDistance": 40, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Launch Commcell GUI on Linux | |
| if [ "$EUID" -ne 0 ] | |
| then | |
| echo "Must run as root (sudo)" | |
| notify-send "Must run as root (sudo)" | |
| exit | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "CV TestCase", | |
| "type": "python", | |
| "request": "launch", | |
| "program": "D:\\Program Files\\Commvault\\ContentStore\\Automation\\CVAutomation.py", | |
| "args": [ | |
| "-tc", "${fileBasenameNoExtension}", |