├── .gitignore ├── README.md ├── core_gameevents.txt ├── cs_gameevents.txt ├── csgo_gameevents.txt ├── vlua_globals.lua └── vscripts ├── spawn_ragdoll.lua └── spawn_ragdoll_script.lua /.gitignore: -------------------------------------------------------------------------------- 1 | projectile/ 2 | core/ 3 | vscripts/glock_test.lua 4 | vscripts/test.lua 5 | vscripts/utils.lua 6 | vscripts/gameinit.lua 7 | vscripts/lib/player_manager.lua 8 | vscripts/PhysWater.lua 9 | vscripts/player_manager.lua 10 | .vscode/settings.json 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cs2_vscript 2 | Vscripts for Counter Strike 2 3 | These scripts should go in your csgo/scripts directory 4 | 5 | vlua_globals are generated from the script_help command in cs2 6 | This is pretty much the vscript api at the moment 7 | -------------------------------------------------------------------------------- /core_gameevents.txt: -------------------------------------------------------------------------------- 1 | //=========== (C) Copyright Valve, L.L.C. All rights reserved. =========== 2 | // 3 | // The copyright to the contents herein is the property of Valve, L.L.C. 4 | // The contents may be used and/or copied only with the written permission of 5 | // Valve, L.L.C., or in accordance with the terms and conditions stipulated in 6 | // the agreement/contract under which the contents have been supplied. 7 | //============================================================================= 8 | 9 | // No spaces in event names, max length 32 10 | // All strings are case sensitive 11 | // total game event byte length must be < 1024 12 | // 13 | // valid data key types are: 14 | // none : value is not networked 15 | // string : a zero terminated string 16 | // bool : unsigned int, 1 bit 17 | // byte : unsigned int, 8 bit 18 | // short : signed int, 16 bit 19 | // long : signed int, 32 bit 20 | // float : float, 32 bit 21 | // local : any data, dont network this field 22 | // 23 | // following keys names are reserved: 24 | // local : if set to 1, event is not networked to clients 25 | // reliable : if set to 0, event is networked unreliable 26 | 27 | "core game events" 28 | { 29 | ////////////////////////////////////////////////////////////////////// 30 | // Server events 31 | ////////////////////////////////////////////////////////////////////// 32 | 33 | "server_spawn" // send once a server starts 34 | { 35 | "hostname" "string" // public host name 36 | "address" "string" // hostame, IP or DNS name 37 | "port" "short" // server port 38 | "game" "string" // game dir 39 | "mapname" "string" // map name 40 | "addonname" "string" // addon name 41 | "maxplayers" "long" // max players 42 | "os" "string" // WIN32, LINUX 43 | "dedicated" "bool" // true if dedicated server 44 | "password" "bool" // true if password protected 45 | } 46 | 47 | "server_pre_shutdown" // server is about to be shut down 48 | { 49 | "reason" "string" // reason why server is about to be shut down 50 | } 51 | 52 | "server_shutdown" // server shut down 53 | { 54 | "reason" "string" // reason why server was shut down 55 | } 56 | 57 | "server_message" // a generic server message 58 | { 59 | "text" "string" // the message text 60 | } 61 | 62 | "server_cvar" // a server console var has changed 63 | { 64 | "cvarname" "string" // cvar name, eg "mp_roundtime" 65 | "cvarvalue" "string" // new cvar value 66 | } 67 | 68 | "player_activate" 69 | { 70 | "userid" "player_controller" // user ID on server 71 | } 72 | 73 | "player_connect_full" // player has sent final message in the connection sequence 74 | { 75 | "userid" "player_controller" // user ID on server (unique on server) 76 | } 77 | 78 | "player_full_update" 79 | { 80 | "userid" "player_controller" // user ID on server 81 | "count" "short" // Number of this full update 82 | } 83 | 84 | "player_connect" // a new client connected 85 | { 86 | "name" "string" // player name 87 | "userid" "player_controller" // user ID on server (unique on server) 88 | "networkid" "string" // player network (i.e steam) id 89 | "xuid" "uint64" // steam id 90 | "address" "string" // ip:port 91 | "bot" "bool" 92 | } 93 | 94 | "player_disconnect" // a client was disconnected 95 | { 96 | "userid" "player_controller" // user ID on server 97 | "reason" "short" // see networkdisconnect enum protobuf 98 | "name" "string" // player name 99 | "networkid" "string" // player network (i.e steam) id 100 | "xuid" "uint64" // steam id 101 | "PlayerID" "short" 102 | } 103 | 104 | "player_info" // a player changed his name 105 | { 106 | "name" "string" // player name 107 | "userid" "player_controller" // user ID on server (unique on server) 108 | "steamid" "uint64" // player network (i.e steam) id 109 | "bot" "bool" // true if player is a AI bot 110 | } 111 | 112 | "player_spawn" // player spawned in game 113 | { 114 | "userid" "player_controller_and_pawn" 115 | } 116 | 117 | // player change his team 118 | // you can receive this on the client before the local player has updated the team field locally 119 | "player_team" 120 | { 121 | "userid" "player_controller_and_pawn" 122 | "team" "byte" // team id 123 | "oldteam" "byte" // old team id 124 | "disconnect" "bool" // team change because player disconnects 125 | "silent" "bool" 126 | "name" "string" 127 | "isbot" "bool" 128 | } 129 | 130 | // sent only on the client for the local player - happens only after a local players pawn team variable has been updated 131 | "local_player_team" 132 | { 133 | } 134 | 135 | // sent only on the client for the local player - happens only after the local players controller team variable has been updated 136 | "local_player_controller_team" 137 | { 138 | } 139 | 140 | 141 | "player_changename" 142 | { 143 | "userid" "player_controller" // user ID on server 144 | "oldname" "string" // players old (current) name 145 | "newname" "string" // players new name 146 | } 147 | 148 | "player_hurt" 149 | { 150 | "userid" "player_controller_and_pawn" // player who was hurt 151 | "attacker" "player_controller_and_pawn" // player who attacked 152 | "health" "byte" // remaining health points 153 | } 154 | 155 | "player_chat" // a public player chat 156 | { 157 | "teamonly" "bool" // true if team only chat 158 | "userid" "player_controller" // chatting player 159 | "playerid" "short" // chatting player ID 160 | "text" "string" // chat text 161 | } 162 | 163 | "local_player_pawn_changed" 164 | { 165 | } 166 | 167 | "teamplay_broadcast_audio" // emits a sound to everyone on a team 168 | { 169 | "team" "byte" // unique team id 170 | "sound" "string" // name of the sound to emit 171 | } 172 | 173 | "finale_start" 174 | { 175 | "rushes" "short" 176 | } 177 | 178 | "player_stats_updated" 179 | { 180 | "forceupload" "bool" 181 | } 182 | 183 | "user_data_downloaded" // fired when achievements/stats are downloaded from Steam or XBox Live 184 | { 185 | } 186 | 187 | "ragdoll_dissolved" 188 | { 189 | "entindex" "long" 190 | } 191 | 192 | "team_info" // info about team 193 | { 194 | "teamid" "byte" // unique team id 195 | "teamname" "string" // team name eg "Team Blue" 196 | } 197 | 198 | "team_score" // team score changed 199 | { 200 | "teamid" "byte" // team id 201 | "score" "short" // total team score 202 | } 203 | 204 | ////////////////////////////////////////////////////////////////////// 205 | // HLTV specific events 206 | ////////////////////////////////////////////////////////////////////// 207 | 208 | "hltv_cameraman" // a spectator/player is a cameraman 209 | { 210 | "userid" "player_controller" // camera man entity index 211 | } 212 | 213 | "hltv_chase" // shot of a single entity 214 | { 215 | "target1" "player_controller" // primary traget index 216 | "target2" "player_controller" // secondary traget index or 0 217 | "distance" "short" // camera distance 218 | "theta" "short" // view angle horizontal 219 | "phi" "short" // view angle vertical 220 | "inertia" "byte" // camera inertia 221 | "ineye" "byte" // diretcor suggests to show ineye 222 | } 223 | 224 | "hltv_rank_camera" // a camera ranking 225 | { 226 | "index" "byte" // fixed camera index 227 | "rank" "float" // ranking, how interesting is this camera view 228 | "target" "player_controller" // best/closest target entity 229 | } 230 | 231 | "hltv_rank_entity" // an entity ranking 232 | { 233 | "userid" "player_controller" // player slot 234 | "rank" "float" // ranking, how interesting is this entity to view 235 | "target" "player_controller" // best/closest target entity 236 | } 237 | 238 | "hltv_fixed" // show from fixed view 239 | { 240 | "posx" "long" // camera position in world 241 | "posy" "long" 242 | "posz" "long" 243 | "theta" "short" // camera angles 244 | "phi" "short" 245 | "offset" "short" 246 | "fov" "float" 247 | "target" "player_controller" // follow this player 248 | } 249 | 250 | "hltv_message" // a HLTV message send by moderators 251 | { 252 | "text" "string" 253 | } 254 | 255 | "hltv_status" // general HLTV status 256 | { 257 | "clients" "long" // number of HLTV spectators 258 | "slots" "long" // number of HLTV slots 259 | "proxies" "short" // number of HLTV proxies 260 | "master" "string" // disptach master IP:port 261 | } 262 | 263 | "hltv_title" 264 | { 265 | "text" "string" 266 | } 267 | 268 | "hltv_chat" // a HLTV chat msg sent by spectators 269 | { 270 | "text" "string" 271 | "steamID" "uint64" // steam id 272 | } 273 | 274 | "hltv_versioninfo" 275 | { 276 | "version" "long" 277 | } 278 | 279 | "hltv_replay" 280 | { 281 | "delay" "long" // number of seconds in killer replay delay 282 | "reason" "long" // reason for replay (ReplayEventType_t) 283 | } 284 | 285 | "demo_start" 286 | { 287 | "local" "1" 288 | "dota_combatlog_list" "local" // CSVCMsgList_GameEvents that are combat log events 289 | "dota_hero_chase_list" "local" // CSVCMsgList_GameEvents 290 | "dota_pick_hero_list" "local" // CSVCMsgList_GameEvents 291 | } 292 | 293 | "demo_stop" 294 | { 295 | 296 | } 297 | 298 | "demo_skip" 299 | { 300 | "local" "1" 301 | "playback_tick" "long" // current playback tick 302 | "skipto_tick" "long" // tick we're going to 303 | "user_message_list" "local" // CSVCMsgList_UserMessages 304 | "dota_hero_chase_list" "local" // CSVCMsgList_GameEvents 305 | } 306 | 307 | "map_shutdown" 308 | { 309 | } 310 | 311 | "map_transition" 312 | { 313 | } 314 | 315 | "hostname_changed" 316 | { 317 | "hostname" "string" 318 | } 319 | 320 | "difficulty_changed" 321 | { 322 | "newDifficulty" "short" 323 | "oldDifficulty" "short" 324 | "strDifficulty" "string" // new difficulty as string 325 | } 326 | 327 | "game_message" // a message send by game logic to everyone 328 | { 329 | "target" "byte" // 0 = console, 1 = HUD 330 | "text" "string" // the message text 331 | } 332 | 333 | "game_newmap" // send when new map is completely loaded 334 | { 335 | "mapname" "string" // map name 336 | "transition" "bool" // true if this is a transition from one map to another 337 | } 338 | 339 | "round_start" 340 | { 341 | "timelimit" "long" // round time limit in seconds 342 | "fraglimit" "long" // frag limit in seconds 343 | "objective" "string" // round objective 344 | } 345 | 346 | "round_end" 347 | { 348 | "winner" "byte" // winner team/user i 349 | "reason" "byte" // reson why team won 350 | "message" "string" // end round message 351 | "time" "float" 352 | } 353 | 354 | "round_start_pre_entity" 355 | { 356 | } 357 | 358 | "round_start_post_nav" 359 | { 360 | } 361 | 362 | "round_freeze_end" 363 | { 364 | } 365 | 366 | "teamplay_round_start" // round restart 367 | { 368 | "full_reset" "bool" // is this a full reset of the map 369 | } 370 | 371 | "player_death" // a game event, name may be 32 charaters long 372 | { 373 | "userid" "player_controller_and_pawn" // user ID who died 374 | "attacker" "player_controller_and_pawn" // user ID who killed 375 | } 376 | 377 | "player_footstep" 378 | { 379 | "userid" "player_pawn" 380 | } 381 | 382 | "player_hintmessage" 383 | { 384 | "hintmessage" "string" // localizable string of a hint 385 | } 386 | 387 | "break_breakable" 388 | { 389 | "entindex" "long" 390 | "userid" "player_pawn" 391 | "material" "byte" // BREAK_GLASS, BREAK_WOOD, etc 392 | } 393 | 394 | "break_prop" 395 | { 396 | "entindex" "long" 397 | "userid" "player_pawn" 398 | "player_held" "bool" 399 | "player_thrown" "bool" 400 | "player_dropped" "bool" 401 | } 402 | 403 | "entity_killed" 404 | { 405 | "entindex_killed" "long" 406 | "entindex_attacker" "long" 407 | "entindex_inflictor" "long" 408 | "damagebits" "long" 409 | } 410 | 411 | "door_close" 412 | { 413 | "userid" "player_pawn" // Who closed the door 414 | "checkpoint" "bool" // Is the door a checkpoint door 415 | } 416 | 417 | // Client side VoteController talking to HUD 418 | "vote_started" 419 | { 420 | "issue" "string" 421 | "param1" "string" 422 | "votedata" "string" 423 | "team" "byte" 424 | "initiator" "long" // entity id of the player who initiated the vote 425 | "reliable" "1" // this event is reliable 426 | } 427 | 428 | "vote_failed" 429 | { 430 | "team" "byte" 431 | "reliable" "1" // this event is reliable 432 | } 433 | 434 | "vote_passed" 435 | { 436 | "details" "string" 437 | "param1" "string" 438 | "team" "byte" 439 | "reliable" "1" // this event is reliable 440 | } 441 | 442 | "vote_changed" 443 | { 444 | "yesVotes" "byte" 445 | "noVotes" "byte" 446 | "potentialVotes" "byte" 447 | } 448 | 449 | "vote_cast_yes" 450 | { 451 | "team" "byte" 452 | "entityid" "long" // entity id of the voter 453 | } 454 | 455 | "vote_cast_no" 456 | { 457 | "team" "byte" 458 | "entityid" "long" // entity id of the voter 459 | } 460 | 461 | "achievement_event" 462 | { 463 | "achievement_name" "string" // non-localized name of achievement 464 | "cur_val" "short" // # of steps toward achievement 465 | "max_val" "short" // total # of steps in achievement 466 | } 467 | 468 | "achievement_earned" 469 | { 470 | "player" "player_controller" // entindex of the player 471 | "achievement" "short" // achievement ID 472 | } 473 | 474 | // Used for a notification message when an achievement fails to write 475 | "achievement_write_failed" 476 | { 477 | } 478 | 479 | "bonus_updated" 480 | { 481 | "numadvanced" "short" 482 | "numbronze" "short" 483 | "numsilver" "short" 484 | "numgold" "short" 485 | } 486 | 487 | "spec_target_updated" 488 | { 489 | "userid" "player_controller_and_pawn" // spectating player 490 | "target" "ehandle" // ehandle of the target 491 | } 492 | 493 | "spec_mode_updated" 494 | { 495 | "userid" "player_controller_and_pawn" // spectating player 496 | } 497 | 498 | "entity_visible" 499 | { 500 | "userid" "player_controller" // The player who sees the entity 501 | "subject" "long" // Entindex of the entity they see 502 | "classname" "string" // Classname of the entity they see 503 | "entityname" "string" // name of the entity they see 504 | } 505 | 506 | "gameinstructor_draw" 507 | { 508 | } 509 | 510 | "gameinstructor_nodraw" 511 | { 512 | } 513 | 514 | "flare_ignite_npc" 515 | { 516 | "entindex" "long" // entity ignited 517 | } 518 | 519 | "helicopter_grenade_punt_miss" 520 | { 521 | } 522 | 523 | "physgun_pickup" 524 | { 525 | "target" "ehandle" // entity picked up 526 | } 527 | 528 | ////////////////////////////////////////////////////////////////////// 529 | // Economy events 530 | ////////////////////////////////////////////////////////////////////// 531 | 532 | "inventory_updated" 533 | { 534 | "itemdef" "short" 535 | "itemid" "long" 536 | } 537 | "cart_updated" 538 | { 539 | } 540 | "store_pricesheet_updated" 541 | { 542 | } 543 | "item_schema_initialized" 544 | { 545 | } 546 | "drop_rate_modified" 547 | { 548 | } 549 | "event_ticket_modified" 550 | { 551 | } 552 | "gc_connected" 553 | { 554 | } 555 | 556 | ////////////////////////////////////////////////////////////////////// 557 | // Instructor / Hint Events 558 | ////////////////////////////////////////////////////////////////////// 559 | "instructor_start_lesson" 560 | { 561 | "userid" "player_controller" // The player who this lesson is intended for 562 | "hint_name" "string" // Name of the lesson to start. Must match instructor_lesson.txt 563 | "hint_target" "long" // entity id that the hint should display at. Leave empty if controller target 564 | 565 | "vr_movement_type" "byte" 566 | "vr_single_controller" "bool" 567 | "vr_controller_type" "byte" 568 | } 569 | 570 | "instructor_close_lesson" 571 | { 572 | "userid" "player_controller" // The player who this lesson is intended for 573 | "hint_name" "string" // Name of the lesson to start. Must match instructor_lesson.txt 574 | } 575 | 576 | "instructor_server_hint_create" //create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH 577 | { 578 | "userid" "player_controller" // user ID of the player that triggered the hint 579 | "hint_entindex" "long" // entity id of the env_instructor_hint that fired the event 580 | 581 | "hint_name" "string" // what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) 582 | "hint_replace_key" "string" // type name so that messages of the same type will replace each other 583 | "hint_target" "long" // entity id that the hint should display at 584 | "hint_activator_userid" "player_controller" // playerslot of the activator 585 | "hint_timeout" "short" // how long in seconds until the hint automatically times out, 0 = never 586 | "hint_icon_onscreen" "string" // the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" 587 | "hint_icon_offscreen" "string" // the hint icon to use when the hint is offscreen. e.g. "icon_alert" 588 | "hint_caption" "string" // the hint caption. e.g. "#ThisIsDangerous" 589 | "hint_activator_caption" "string" // the hint caption that only the activator sees e.g. "#YouPushedItGood" 590 | "hint_color" "string" // the hint color in "r,g,b" format where each component is 0-255 591 | "hint_icon_offset" "float" // how far on the z axis to offset the hint from entity origin 592 | "hint_range" "float" // range before the hint is culled 593 | "hint_flags" "long" // hint flags 594 | "hint_binding" "string" // bindings to use when use_binding is the onscreen icon 595 | "hint_allow_nodraw_target" "bool" // if false, the hint will dissappear if the target entity is invisible 596 | "hint_nooffscreen" "bool" // if true, the hint will not show when outside the player view 597 | "hint_forcecaption" "bool" // if true, the hint caption will show even if the hint is occluded 598 | "hint_local_player_only" "bool" // if true, only the local player will see the hint 599 | "hint_start_sound" "string" // Game sound to play 600 | 601 | "hint_layoutfile" "string" // Path for Panorama layout file 602 | "hint_vr_panel_type" "short" // Attachment type for the Panorama panel 603 | "hint_vr_height_offset" "float" // Height offset for attached panels 604 | "hint_vr_offset_x" "float" // offset for attached panels 605 | "hint_vr_offset_y" "float" // offset for attached panels 606 | "hint_vr_offset_z" "float" // offset for attached panels 607 | } 608 | 609 | "instructor_server_hint_stop" //destroys a server/map created hint 610 | { 611 | "hint_name" "string" // The hint to stop. Will stop ALL hints with this name 612 | "hint_entindex" "long" // entity id of the env_instructor_hint that fired the event 613 | } 614 | 615 | "set_instructor_group_enabled" 616 | { 617 | "group" "string" 618 | "enabled" "short" 619 | } 620 | 621 | "clientside_lesson_closed" 622 | { 623 | "lesson_name" "string" 624 | } 625 | 626 | "dynamic_shadow_light_changed" 627 | { 628 | } 629 | } -------------------------------------------------------------------------------- /cs_gameevents.txt: -------------------------------------------------------------------------------- 1 | //=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. =========== 2 | // 3 | // The copyright to the contents herein is the property of Valve, L.L.C. 4 | // The contents may be used and/or copied only with the written permission of 5 | // Valve, L.L.C., or in accordance with the terms and conditions stipulated in 6 | // the agreement/contract under which the contents have been supplied. 7 | //============================================================================= 8 | 9 | // No spaces in event names, max length 32 10 | // All strings are case sensitive 11 | // total game event byte length must be < 1024 12 | // 13 | // valid data key types are: 14 | // none : value is not networked 15 | // string : a zero terminated string 16 | // wstring: a zero terminated wide char string 17 | // bool : unsigned int, 1 bit 18 | // byte : unsigned int, 8 bit 19 | // short : signed int, 16 bit 20 | // long : signed int, 32 bit 21 | // float : float, 32 bit 22 | 23 | "cstrikeevents" 24 | { 25 | "player_death" // a game event, name may be 32 characters long 26 | { 27 | // this extents the original player_death by a new fields 28 | "userid" "player_controller_and_pawn" // user who died 29 | "attacker" "player_controller_and_pawn" // player who killed 30 | "assister" "player_controller_and_pawn" // player who assisted in the kill 31 | "assistedflash" "bool" // assister helped with a flash 32 | "weapon" "string" // weapon name killer used 33 | "weapon_itemid" "string" // inventory item id of weapon killer used 34 | "weapon_fauxitemid" "string" // faux item id of weapon killer used 35 | "weapon_originalowner_xuid" "string" 36 | "headshot" "bool" // singals a headshot 37 | "dominated" "short" // did killer dominate victim with this kill 38 | "revenge" "short" // did killer get revenge on victim with this kill 39 | "wipe" "short" // is the kill resulting in squad wipe 40 | "penetrated" "short" // number of objects shot penetrated before killing target 41 | "noreplay" "bool" // if replay data is unavailable, this will be present and set to false 42 | "noscope" "bool" // kill happened without a scope, used for death notice icon 43 | "thrusmoke" "bool" // hitscan weapon went through smoke grenade 44 | "attackerblind" "bool" // attacker was blind from flashbang 45 | "distance" "float" // distance to victim in meters 46 | } 47 | 48 | "other_death" 49 | { 50 | "otherid" "short" // other entity ID who died 51 | "othertype" "string" // other entity type 52 | "attacker" "short" // user ID who killed 53 | "weapon" "string" // weapon name killer used 54 | "weapon_itemid" "string" // inventory item id of weapon killer used 55 | "weapon_fauxitemid" "string" // faux item id of weapon killer used 56 | "weapon_originalowner_xuid" "string" 57 | "headshot" "bool" // singals a headshot 58 | "penetrated" "short" // number of objects shot penetrated before killing target 59 | "noscope" "bool" // kill happened without a scope, used for death notice icon 60 | "thrusmoke" "bool" // hitscan weapon went through smoke grenade 61 | "attackerblind" "bool" // attacker was blind from flashbang 62 | } 63 | 64 | "player_hurt" 65 | { 66 | "userid" "player_controller_and_pawn" // player index who was hurt 67 | "attacker" "player_controller_and_pawn" // player index who attacked 68 | "health" "byte" // remaining health points 69 | "armor" "byte" // remaining armor points 70 | "weapon" "string" // weapon name attacker used, if not the world 71 | "dmg_health" "short" // damage done to health 72 | "dmg_armor" "byte" // damage done to armor 73 | "hitgroup" "byte" // hitgroup that was damaged 74 | } 75 | 76 | "item_purchase" 77 | { 78 | "userid" "player_controller" 79 | "team" "short" 80 | "loadout" "short" 81 | "weapon" "string" 82 | } 83 | 84 | "bomb_beginplant" 85 | { 86 | "userid" "player_controller_and_pawn" // player who is planting the bomb 87 | "site" "short" // bombsite index 88 | } 89 | 90 | "bomb_abortplant" 91 | { 92 | "userid" "player_controller_and_pawn" // player who is planting the bomb 93 | "site" "short" // bombsite index 94 | } 95 | 96 | "bomb_planted" 97 | { 98 | "userid" "player_controller_and_pawn" // player who planted the bomb 99 | "site" "short" // bombsite index 100 | } 101 | 102 | "bomb_defused" 103 | { 104 | "userid" "player_controller_and_pawn" // player who defused the bomb 105 | "site" "short" // bombsite index 106 | } 107 | 108 | "bomb_exploded" 109 | { 110 | "userid" "player_controller_and_pawn" // player who planted the bomb 111 | "site" "short" // bombsite index 112 | } 113 | 114 | "bomb_dropped" 115 | { 116 | "userid" "player_controller_and_pawn" // player who dropped the bomb 117 | "entindex" "long" 118 | } 119 | 120 | "bomb_pickup" 121 | { 122 | "userid" "player_pawn" // player pawn who picked up the bomb 123 | } 124 | 125 | "defuser_dropped" 126 | { 127 | "entityid" "long" // defuser's entity ID 128 | } 129 | 130 | "defuser_pickup" 131 | { 132 | "entityid" "long" // defuser's entity ID 133 | "userid" "player_controller_and_pawn" // player who picked up the defuser 134 | } 135 | 136 | "announce_phase_end" 137 | { 138 | } 139 | 140 | "cs_intermission" 141 | { 142 | } 143 | 144 | "bomb_begindefuse" 145 | { 146 | "userid" "player_controller_and_pawn" // player who is defusing 147 | "haskit" "bool" 148 | } 149 | 150 | "bomb_abortdefuse" 151 | { 152 | "userid" "player_controller_and_pawn" // player who was defusing 153 | } 154 | 155 | "hostage_follows" 156 | { 157 | "userid" "player_controller_and_pawn" // player who touched the hostage 158 | "hostage" "short" // hostage entity index 159 | } 160 | 161 | "hostage_hurt" 162 | { 163 | "userid" "player_controller_and_pawn" // player who hurt the hostage 164 | "hostage" "short" // hostage entity index 165 | } 166 | 167 | "hostage_killed" 168 | { 169 | "userid" "player_controller_and_pawn" // player who killed the hostage 170 | "hostage" "short" // hostage entity index 171 | } 172 | 173 | "hostage_rescued" 174 | { 175 | "userid" "player_controller_and_pawn" // player who rescued the hostage 176 | "hostage" "short" // hostage entity index 177 | "site" "short" // rescue site index 178 | } 179 | 180 | "hostage_stops_following" 181 | { 182 | "userid" "player_controller_and_pawn" // player who rescued the hostage 183 | "hostage" "short" // hostage entity index 184 | } 185 | 186 | "hostage_rescued_all" 187 | { 188 | } 189 | 190 | "hostage_call_for_help" 191 | { 192 | "hostage" "short" // hostage entity index 193 | } 194 | 195 | "vip_escaped" 196 | { 197 | "userid" "player_controller" // player who was the VIP 198 | } 199 | 200 | "vip_killed" 201 | { 202 | "userid" "player_controller" // player who was the VIP 203 | "attacker" "player_controller" // user ID who killed the VIP 204 | } 205 | 206 | "player_radio" 207 | { 208 | "userid" "player_controller_and_pawn" 209 | "slot" "short" 210 | } 211 | 212 | "bomb_beep" 213 | { 214 | "entindex" "long" // c4 entity 215 | } 216 | 217 | "weapon_fire" 218 | { 219 | "userid" "player_controller_and_pawn" 220 | "weapon" "string" // weapon name used 221 | "silenced" "bool" // is weapon silenced 222 | } 223 | 224 | "weapon_fire_on_empty" 225 | { 226 | "userid" "player_controller_and_pawn" 227 | "weapon" "string" // weapon name used 228 | } 229 | 230 | "grenade_thrown" 231 | { 232 | "userid" "player_controller_and_pawn" 233 | "weapon" "string" // weapon name used 234 | } 235 | 236 | "weapon_outofammo" 237 | { 238 | "userid" "player_controller_and_pawn" 239 | } 240 | 241 | "weapon_reload" 242 | { 243 | "userid" "player_controller_and_pawn" 244 | } 245 | 246 | "weapon_zoom" 247 | { 248 | "userid" "player_controller_and_pawn" 249 | } 250 | 251 | "silencer_detach" 252 | { 253 | "userid" "player_controller_and_pawn" 254 | } 255 | 256 | "inspect_weapon" 257 | { 258 | "userid" "player_controller_and_pawn" 259 | } 260 | 261 | // exists for the game instructor to let it know when the player zoomed in with a regular rifle 262 | // different from the above weapon_zoom because we don't use this event to notify bots 263 | "weapon_zoom_rifle" 264 | { 265 | "userid" "player_controller_and_pawn" 266 | } 267 | 268 | "player_spawned" 269 | { 270 | "userid" "player_controller_and_pawn" 271 | "inrestart" "bool" // true if restart is pending 272 | } 273 | 274 | "item_pickup" 275 | { 276 | "userid" "player_controller" 277 | "item" "string" // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' 278 | "silent" "bool" 279 | "defindex" "long" 280 | } 281 | 282 | "item_pickup_slerp" 283 | { 284 | "userid" "player_controller" 285 | "index" "short" 286 | "behavior" "short" 287 | } 288 | 289 | "item_pickup_failed" 290 | { 291 | "userid" "player_controller" 292 | "item" "string" 293 | "reason" "short" 294 | "limit" "short" 295 | } 296 | 297 | "item_remove" 298 | { 299 | "userid" "player_controller" 300 | "item" "string" // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' 301 | "defindex" "long" 302 | } 303 | 304 | "ammo_pickup" 305 | { 306 | "userid" "player_controller" 307 | "item" "string" // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' 308 | "index" "long" // the weapon entindex 309 | } 310 | 311 | "item_equip" 312 | { 313 | "userid" "player_controller" 314 | "item" "string" // either a weapon such as 'tmp' or 'hegrenade', or an item such as 'nvgs' 315 | "defindex" "long" 316 | "canzoom" "bool" 317 | "hassilencer" "bool" 318 | "issilenced" "bool" 319 | "hastracers" "bool" 320 | "weptype" "short" 321 | //WEAPONTYPE_UNKNOWN = -1 322 | //WEAPONTYPE_KNIFE = 0 323 | //WEAPONTYPE_PISTOL = 1 324 | //WEAPONTYPE_SUBMACHINEGUN = 2 325 | //WEAPONTYPE_RIFLE = 3 326 | //WEAPONTYPE_SHOTGUN = 4 327 | //WEAPONTYPE_SNIPER_RIFLE = 5 328 | //WEAPONTYPE_MACHINEGUN = 6 329 | //WEAPONTYPE_C4 = 7 330 | //WEAPONTYPE_GRENADE = 8 331 | // 332 | "ispainted" "bool" 333 | } 334 | 335 | "enter_buyzone" 336 | { 337 | "userid" "player_controller" 338 | "canbuy" "bool" 339 | } 340 | 341 | "exit_buyzone" 342 | { 343 | "userid" "player_controller" 344 | "canbuy" "bool" 345 | } 346 | 347 | "buytime_ended" 348 | { 349 | } 350 | 351 | "enter_bombzone" 352 | { 353 | "userid" "player_controller" 354 | "hasbomb" "bool" 355 | "isplanted" "bool" 356 | } 357 | 358 | "exit_bombzone" 359 | { 360 | "userid" "player_controller" 361 | "hasbomb" "bool" 362 | "isplanted" "bool" 363 | } 364 | 365 | "enter_rescue_zone" 366 | { 367 | "userid" "player_controller" 368 | } 369 | 370 | "exit_rescue_zone" 371 | { 372 | "userid" "player_controller" 373 | } 374 | 375 | "silencer_off" 376 | { 377 | "userid" "player_controller" 378 | } 379 | 380 | "silencer_on" 381 | { 382 | "userid" "player_controller" 383 | } 384 | 385 | "buymenu_open" 386 | { 387 | "userid" "player_controller" 388 | } 389 | 390 | "buymenu_close" 391 | { 392 | "userid" "player_controller" 393 | } 394 | 395 | "round_prestart" // sent before all other round restart actions 396 | { 397 | } 398 | 399 | "round_poststart" // sent after all other round restart actions 400 | { 401 | } 402 | 403 | "round_start" 404 | { 405 | "timelimit" "long" // round time limit in seconds 406 | "fraglimit" "long" // frag limit in seconds 407 | "objective" "string" // round objective 408 | } 409 | 410 | 411 | "round_end" 412 | { 413 | "winner" "byte" // winner team/user i 414 | "reason" "byte" // reson why team won 415 | "message" "string" // end round message 416 | "legacy" "byte" // server-generated legacy value 417 | "player_count" "short" // total number of players alive at the end of round, used for statistics gathering, computed on the server in the event client is in replay when receiving this message 418 | "nomusic" "byte" // if set, don't play round end music, because action is still on-going 419 | } 420 | 421 | "grenade_bounce" 422 | { 423 | "userid" "player_controller_and_pawn" 424 | } 425 | 426 | "hegrenade_detonate" 427 | { 428 | "userid" "player_controller_and_pawn" 429 | "entityid" "short" 430 | "x" "float" 431 | "y" "float" 432 | "z" "float" 433 | } 434 | 435 | "flashbang_detonate" 436 | { 437 | "userid" "player_controller_and_pawn" 438 | "entityid" "short" 439 | "x" "float" 440 | "y" "float" 441 | "z" "float" 442 | } 443 | 444 | "smokegrenade_detonate" 445 | { 446 | "userid" "player_controller_and_pawn" 447 | "entityid" "short" 448 | "x" "float" 449 | "y" "float" 450 | "z" "float" 451 | } 452 | 453 | "smokegrenade_expired" 454 | { 455 | "userid" "player_controller_and_pawn" 456 | "entityid" "short" 457 | "x" "float" 458 | "y" "float" 459 | "z" "float" 460 | } 461 | 462 | "molotov_detonate" 463 | { 464 | "userid" "player_controller_and_pawn" 465 | "x" "float" 466 | "y" "float" 467 | "z" "float" 468 | } 469 | 470 | "decoy_detonate" 471 | { 472 | "userid" "player_controller_and_pawn" 473 | "entityid" "short" 474 | "x" "float" 475 | "y" "float" 476 | "z" "float" 477 | } 478 | 479 | "decoy_started" 480 | { 481 | "userid" "player_pawn" 482 | "entityid" "short" 483 | "x" "float" 484 | "y" "float" 485 | "z" "float" 486 | } 487 | 488 | "tagrenade_detonate" 489 | { 490 | "userid" "player_controller" 491 | "entityid" "short" 492 | "x" "float" 493 | "y" "float" 494 | "z" "float" 495 | } 496 | 497 | "inferno_startburn" 498 | { 499 | "entityid" "short" 500 | "x" "float" 501 | "y" "float" 502 | "z" "float" 503 | } 504 | 505 | "inferno_expire" 506 | { 507 | "entityid" "short" 508 | "x" "float" 509 | "y" "float" 510 | "z" "float" 511 | } 512 | 513 | "inferno_extinguish" 514 | { 515 | "entityid" "short" 516 | "x" "float" 517 | "y" "float" 518 | "z" "float" 519 | } 520 | 521 | "decoy_firing" 522 | { 523 | "userid" "player_controller_and_pawn" 524 | "entityid" "short" 525 | "x" "float" 526 | "y" "float" 527 | "z" "float" 528 | } 529 | 530 | "bullet_impact" 531 | { 532 | "userid" "player_controller_and_pawn" 533 | "x" "float" 534 | "y" "float" 535 | "z" "float" 536 | } 537 | 538 | "player_footstep" 539 | { 540 | "userid" "player_controller_and_pawn" 541 | } 542 | 543 | "player_jump" 544 | { 545 | "userid" "player_controller" 546 | } 547 | 548 | "player_blind" 549 | { 550 | "userid" "player_controller" 551 | "attacker" "player_controller" // user ID who threw the flash 552 | "entityid" "short" // the flashbang going off 553 | "blind_duration" "float" 554 | } 555 | 556 | "player_falldamage" 557 | { 558 | "userid" "player_controller_and_pawn" 559 | "damage" "float" 560 | } 561 | 562 | "door_moving" 563 | { 564 | "userid" "player_controller_and_pawn" 565 | "entindex" "long" 566 | } 567 | 568 | "round_freeze_end" 569 | { 570 | } 571 | 572 | "mb_input_lock_success" 573 | { 574 | } 575 | 576 | "mb_input_lock_cancel" 577 | { 578 | } 579 | 580 | "nav_blocked" 581 | { 582 | "area" "long" 583 | "blocked" "bool" 584 | } 585 | 586 | "nav_generate" 587 | { 588 | } 589 | 590 | "player_stats_updated" 591 | { 592 | "forceupload" "bool" 593 | } 594 | 595 | "achievement_info_loaded" 596 | { 597 | } 598 | 599 | "spec_target_updated" 600 | { 601 | "userid" "player_controller_and_pawn" // spectating player 602 | "target" "ehandle" // ehandle of the target 603 | } 604 | 605 | "spec_mode_updated" 606 | { 607 | "userid" "player_controller" // entindex of the player 608 | } 609 | 610 | "hltv_changed_mode" 611 | { 612 | "oldmode" "long" 613 | "newmode" "long" 614 | "obs_target" "long" 615 | } 616 | 617 | "cs_game_disconnected" 618 | { 619 | } 620 | 621 | "cs_round_final_beep" 622 | { 623 | } 624 | 625 | "cs_round_start_beep" 626 | { 627 | } 628 | 629 | "cs_win_panel_round" 630 | { 631 | "show_timer_defend" "bool" 632 | "show_timer_attack" "bool" 633 | "timer_time" "short" 634 | 635 | "final_event" "byte" //define in cs_gamerules.h 636 | 637 | "funfact_token" "string" 638 | "funfact_player" "player_controller" 639 | "funfact_data1" "long" 640 | "funfact_data2" "long" 641 | "funfact_data3" "long" 642 | } 643 | 644 | "cs_win_panel_match" 645 | { 646 | } 647 | 648 | "cs_match_end_restart" 649 | { 650 | } 651 | "cs_pre_restart" 652 | { 653 | } 654 | 655 | "show_deathpanel" 656 | { 657 | "victim" "player_controller_and_pawn" // endindex of the one who was killed 658 | "killer" "ehandle" // entindex of the killer entity 659 | "killer_controller" "player_controller" 660 | "hits_taken" "short" 661 | "damage_taken" "short" 662 | "hits_given" "short" 663 | "damage_given" "short" 664 | } 665 | 666 | "hide_deathpanel" 667 | { 668 | } 669 | 670 | "player_avenged_teammate" 671 | { 672 | "avenger_id" "player_controller" 673 | "avenged_player_id" "player_controller" 674 | } 675 | 676 | "achievement_earned" 677 | { 678 | "player" "player_controller" // entindex of the player 679 | "achievement" "short" // achievement ID 680 | } 681 | 682 | "achievement_earned_local" 683 | { 684 | "achievement" "short" // achievement ID 685 | "splitscreenplayer" "short" // splitscreen ID 686 | } 687 | 688 | "repost_xbox_achievements" 689 | { 690 | "splitscreenplayer" "short" // splitscreen ID 691 | } 692 | 693 | "match_end_conditions" 694 | { 695 | "frags" "long" 696 | "max_rounds" "long" 697 | "win_rounds" "long" 698 | "time" "long" 699 | } 700 | 701 | "round_mvp" 702 | { 703 | "userid" "player_controller" 704 | "reason" "short" 705 | "value" "long" 706 | "musickitmvps" "long" 707 | "nomusic" "byte" 708 | "musickitid" "long" 709 | } 710 | 711 | "player_decal" 712 | { 713 | "userid" "player_pawn" 714 | } 715 | 716 | "teamplay_round_start" // round restart 717 | { 718 | "full_reset" "bool" // is this a full reset of the map 719 | } 720 | 721 | "show_survival_respawn_status" 722 | { 723 | "loc_token" "string" 724 | "duration" "long" 725 | "userid" "player_controller_and_pawn" 726 | } 727 | 728 | "client_disconnect" 729 | { 730 | } 731 | 732 | "gg_player_levelup" 733 | { 734 | "userid" "player_controller" // player who leveled up 735 | "weaponrank" "short" 736 | "weaponname" "string" // name of weapon being awarded 737 | } 738 | 739 | "ggtr_player_levelup" 740 | { 741 | "userid" "player_controller" // player who leveled up 742 | "weaponrank" "short" 743 | "weaponname" "string" // name of weapon being awarded 744 | } 745 | 746 | "ggprogressive_player_levelup" 747 | { 748 | "userid" "player_controller" // player who leveled up 749 | "weaponrank" "short" 750 | "weaponname" "string" // name of weapon being awarded 751 | } 752 | 753 | "gg_killed_enemy" 754 | { 755 | "victimid" "player_controller" // user ID who died 756 | "attackerid" "player_controller" // user ID who killed 757 | "dominated" "short" // did killer dominate victim with this kill 758 | "revenge" "short" // did killer get revenge on victim with this kill 759 | "bonus" "bool" // did killer kill with a bonus weapon? 760 | } 761 | 762 | "gg_final_weapon_achieved" 763 | { 764 | "userid" "player_controller" // user ID who achieved the final gun game weapon 765 | } 766 | 767 | "gg_bonus_grenade_achieved" 768 | { 769 | "userid" "player_controller" // user ID who achieved the bonus grenade 770 | } 771 | 772 | "switch_team" 773 | { 774 | "numPlayers" "short" // number of active players on both T and CT 775 | "numSpectators" "short" // number of spectators 776 | "avg_rank" "short" // average rank of human players 777 | "numTSlotsFree" "short" 778 | "numCTSlotsFree" "short" 779 | } 780 | 781 | "gg_leader" 782 | { 783 | "userid" "player_controller" // user ID that is currently in the lead 784 | } 785 | 786 | "gg_team_leader" 787 | { 788 | "userid" "player_controller" // user ID that is currently in the lead 789 | } 790 | 791 | "gg_player_impending_upgrade" 792 | { 793 | "userid" "player_controller" // player who will be leveling up 794 | } 795 | 796 | "write_profile_data" 797 | { 798 | } 799 | 800 | 801 | // fired when a player runs out of time in trial mode 802 | "trial_time_expired" 803 | { 804 | "userid" "player_controller" // player whose time has expired 805 | } 806 | 807 | // Fired when it's time to update matchmaking data at the end of a round. 808 | "update_matchmaking_stats" 809 | { 810 | } 811 | 812 | "player_reset_vote" 813 | { 814 | "userid" "player_controller" 815 | "vote" "bool" 816 | } 817 | 818 | "enable_restart_voting" 819 | { 820 | "enable" "bool" 821 | } 822 | 823 | "sfuievent" 824 | { 825 | "action" "string" 826 | "data" "string" 827 | "slot" "byte" 828 | } 829 | 830 | "start_vote" 831 | { 832 | "userid" "player_controller" 833 | "type" "byte" 834 | "vote_parameter" "short" 835 | } 836 | 837 | "player_given_c4" 838 | { 839 | "userid" "player_controller" // user ID who received the c4 840 | } 841 | 842 | "gg_reset_round_start_sounds" 843 | { 844 | "userid" "player_controller" // user ID who should have round start sounds reset 845 | } 846 | 847 | "tr_player_flashbanged" 848 | { 849 | "userid" "player_controller" // user ID of the player banged 850 | } 851 | 852 | // not used yet because this relied on vgui panels, scaleform isn't supported yet 853 | //"tr_highlight_ammo" 854 | //{ 855 | // "userid" "player_controller" // user ID of the player 856 | //} 857 | 858 | "tr_mark_complete" 859 | { 860 | "complete" "short" 861 | } 862 | 863 | "tr_mark_best_time" 864 | { 865 | "time" "long" 866 | } 867 | 868 | "tr_exit_hint_trigger" 869 | { 870 | } 871 | 872 | "bot_takeover" 873 | { 874 | "userid" "player_controller_and_pawn" 875 | "botid" "player_controller" 876 | } 877 | 878 | "tr_show_finish_msgbox" 879 | { 880 | } 881 | 882 | "tr_show_exit_msgbox" 883 | { 884 | } 885 | 886 | "jointeam_failed" 887 | { 888 | "userid" "player_controller" 889 | "reason" "byte" // 0 = team_full 890 | } 891 | 892 | "teamchange_pending" 893 | { 894 | "userid" "player_controller" 895 | "toteam" "byte" 896 | } 897 | 898 | "material_default_complete" 899 | { 900 | } 901 | 902 | "cs_prev_next_spectator" 903 | { 904 | "next" "bool" 905 | } 906 | 907 | "cs_handle_ime_event" 908 | { 909 | "local" "1" 910 | "eventtype" "string" 911 | "eventdata" "wstring" 912 | } 913 | 914 | "nextlevel_changed" // a game event, name may be 32 characters long 915 | { 916 | "nextlevel" "string" 917 | "mapgroup" "string" 918 | "skirmishmode" "string" 919 | } 920 | 921 | "seasoncoin_levelup" 922 | { 923 | "userid" "player_controller" 924 | "category" "short" 925 | "rank" "short" 926 | } 927 | 928 | "tournament_reward" 929 | { 930 | "defindex" "long" 931 | "totalrewards" "long" 932 | "accountid" "long" 933 | } 934 | "start_halftime" 935 | { 936 | } 937 | 938 | "ammo_refill" 939 | { 940 | "userid" "player_controller" 941 | "success" "bool" 942 | } 943 | 944 | "parachute_pickup" 945 | { 946 | "userid" "player_controller" 947 | } 948 | 949 | "parachute_deploy" 950 | { 951 | "userid" "player_controller" 952 | } 953 | 954 | "dronegun_attack" 955 | { 956 | "userid" "player_controller" 957 | } 958 | 959 | "drone_dispatched" 960 | { 961 | "userid" "player_controller" 962 | "priority" "short" 963 | "drone_dispatched" "short" 964 | } 965 | 966 | "loot_crate_visible" 967 | { 968 | "userid" "player_controller" // player entindex 969 | "subject" "short" // crate entindex 970 | "type" "string" // type of crate (metal, wood, or paradrop) 971 | } 972 | 973 | "loot_crate_opened" 974 | { 975 | "userid" "player_controller" // player entindex 976 | "type" "string" // type of crate (metal, wood, or paradrop) 977 | } 978 | 979 | "open_crate_instr" 980 | { 981 | "userid" "player_controller" // player entindex 982 | "subject" "short" // crate entindex 983 | "type" "string" // type of crate (metal, wood, or paradrop) 984 | } 985 | 986 | "smoke_beacon_paradrop" 987 | { 988 | "userid" "player_controller" 989 | "paradrop" "short" 990 | } 991 | 992 | "survival_paradrop_spawn" 993 | { 994 | "entityid" "short" 995 | } 996 | 997 | "survival_paradrop_break" 998 | { 999 | "entityid" "short" 1000 | } 1001 | 1002 | "drone_cargo_detached" 1003 | { 1004 | "userid" "player_controller" 1005 | "cargo" "short" 1006 | "delivered" "bool" 1007 | } 1008 | 1009 | "drone_above_roof" 1010 | { 1011 | "userid" "player_controller" 1012 | "cargo" "short" 1013 | } 1014 | 1015 | "choppers_incoming_warning" 1016 | { 1017 | "global" "bool" 1018 | } 1019 | 1020 | "firstbombs_incoming_warning" 1021 | { 1022 | "global" "bool" 1023 | } 1024 | 1025 | "dz_item_interaction" 1026 | { 1027 | "userid" "player_controller" // player entindex 1028 | "subject" "short" // crate entindex 1029 | "type" "string" // type of crate (metal, wood, or paradrop) 1030 | } 1031 | 1032 | "survival_teammate_respawn" 1033 | { 1034 | "userid" "player_controller" 1035 | } 1036 | 1037 | "survival_no_respawns_warning" 1038 | { 1039 | "userid" "player_controller" 1040 | } 1041 | 1042 | "survival_no_respawns_final" 1043 | { 1044 | "userid" "player_controller" 1045 | } 1046 | 1047 | "player_ping" 1048 | { 1049 | "userid" "player_controller_and_pawn" 1050 | "entityid" "short" 1051 | "x" "float" 1052 | "y" "float" 1053 | "z" "float" 1054 | "urgent" "bool" 1055 | } 1056 | 1057 | "player_ping_stop" 1058 | { 1059 | "entityid" "short" 1060 | } 1061 | 1062 | "player_sound" 1063 | { 1064 | "userid" "player_controller_and_pawn" 1065 | "radius" "int" 1066 | "duration" "float" 1067 | "step" "bool" 1068 | } 1069 | 1070 | "guardian_wave_restart" 1071 | { 1072 | } 1073 | 1074 | "team_intro_start" 1075 | { 1076 | } 1077 | 1078 | "team_intro_end" 1079 | { 1080 | } 1081 | } 1082 | -------------------------------------------------------------------------------- /csgo_gameevents.txt: -------------------------------------------------------------------------------- 1 | //=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. =========== 2 | // 3 | // The copyright to the contents herein is the property of Valve, L.L.C. 4 | // The contents may be used and/or copied only with the written permission of 5 | // Valve, L.L.C., or in accordance with the terms and conditions stipulated in 6 | // the agreement/contract under which the contents have been supplied. 7 | //============================================================================= 8 | 9 | // No spaces in event names, max length 32 10 | // All strings are case sensitive 11 | // total game event byte length must be < 1024 12 | // 13 | // valid data key types are: 14 | // none : value is not networked 15 | // string : a zero terminated string 16 | // bool : unsigned int, 1 bit 17 | // byte : unsigned int, 8 bit 18 | // short : signed int, 16 bit 19 | // long : signed int, 32 bit 20 | // float : float, 32 bit 21 | 22 | 23 | 24 | "gameevents" 25 | { 26 | "team_info" // info about team 27 | { 28 | "teamid" "byte" // unique team id 29 | "teamname" "string" // team name eg "Team Blue" 30 | } 31 | 32 | "team_score" // team score changed 33 | { 34 | "teamid" "byte" // team id 35 | "score" "short" // total team score 36 | } 37 | 38 | "teamplay_broadcast_audio" // emits a sound to everyone on a team 39 | { 40 | "team" "byte" // unique team id 41 | "sound" "string" // name of the sound to emit 42 | } 43 | 44 | "gameui_hidden" 45 | {} 46 | 47 | "items_gifted" 48 | { 49 | "player" "player_controller" // entity used by player 50 | "itemdef" "long" 51 | "numgifts" "short" 52 | "giftidx" "long" 53 | "accountid" "long" 54 | } 55 | 56 | ////////////////////////////////////////////////////////////////////// 57 | // Player events 58 | ////////////////////////////////////////////////////////////////////// 59 | 60 | "player_team" // player change his team 61 | { 62 | "userid" "player_controller_and_pawn" // player 63 | "team" "byte" // team id 64 | "oldteam" "byte" // old team id 65 | "disconnect" "bool" // team change because player disconnects 66 | "silent" "bool" 67 | "isbot" "bool" // true if player is a bot 68 | } 69 | 70 | "player_death" // a game event, name may be 32 charaters long 71 | { 72 | "userid" "player_controller_and_pawn" // user ID who died 73 | "attacker" "player_controller_and_pawn" // user ID who killed 74 | } 75 | 76 | "player_hurt" 77 | { 78 | "userid" "player_controller_and_pawn" // player who was hurt 79 | "attacker" "player_controller_and_pawn" // player who attacked 80 | "health" "byte" // remaining health points 81 | } 82 | 83 | "player_chat" // a public player chat 84 | { 85 | "teamonly" "bool" // true if team only chat 86 | "userid" "short" // chatting player 87 | "text" "string" // chat text 88 | } 89 | 90 | "player_score" // players scores changed 91 | { 92 | "userid" "player_controller" // user ID on server 93 | "kills" "short" // # of kills 94 | "deaths" "short" // # of deaths 95 | "score" "short" // total game score 96 | } 97 | 98 | "player_spawn" // player spawned in game 99 | { 100 | "userid" "player_controller_and_pawn" 101 | } 102 | 103 | "player_shoot" // player shoot his weapon 104 | { 105 | "userid" "player_controller_and_pawn" // user ID on server 106 | "weapon" "byte" // weapon ID 107 | "mode" "byte" // weapon mode 108 | } 109 | 110 | "player_changename" 111 | { 112 | "userid" "player_controller" // user ID on server 113 | "oldname" "string" // players old (current) name 114 | "newname" "string" // players new name 115 | } 116 | 117 | "player_hintmessage" 118 | { 119 | "hintmessage" "string" // localizable string of a hint 120 | } 121 | 122 | ////////////////////////////////////////////////////////////////////// 123 | // Game events 124 | ////////////////////////////////////////////////////////////////////// 125 | 126 | "game_init" // sent when a new game is started 127 | { 128 | } 129 | 130 | "game_newmap" // send when new map is completely loaded 131 | { 132 | "mapname" "string" // map name 133 | } 134 | 135 | "game_start" // a new game starts 136 | { 137 | "roundslimit" "long" // max round 138 | "timelimit" "long" // time limit 139 | "fraglimit" "long" // frag limit 140 | "objective" "string" // round objective 141 | } 142 | 143 | "game_end" // a game ended 144 | { 145 | "winner" "byte" // winner team/user id 146 | } 147 | 148 | "round_start" 149 | { 150 | "timelimit" "long" // round time limit in seconds 151 | "fraglimit" "long" // frag limit in seconds 152 | "objective" "string" // round objective 153 | } 154 | 155 | "round_announce_match_point" 156 | { 157 | } 158 | 159 | "round_announce_final" 160 | { 161 | } 162 | 163 | "round_announce_last_round_half" 164 | { 165 | } 166 | 167 | "round_announce_match_start" 168 | { 169 | } 170 | 171 | "round_announce_warmup" 172 | { 173 | } 174 | 175 | "round_end" 176 | { 177 | "winner" "byte" // winner team/user i 178 | "reason" "byte" // reson why team won 179 | "message" "string" // end round message 180 | "legacy" "byte" // server-generated legacy value 181 | } 182 | 183 | "round_end_upload_stats" 184 | { 185 | } 186 | 187 | "round_officially_ended" 188 | { 189 | } 190 | 191 | "round_time_warning" 192 | { 193 | } 194 | 195 | "ugc_map_info_received" 196 | { 197 | "published_file_id" "uint64" 198 | } 199 | 200 | "ugc_map_unsubscribed" 201 | { 202 | "published_file_id" "uint64" 203 | } 204 | 205 | "ugc_map_download_error" 206 | { 207 | "published_file_id" "uint64" 208 | "error_code" "long" 209 | } 210 | 211 | "ugc_file_download_finished" 212 | { 213 | "hcontent" "uint64" // id of this specific content (may be image or map) 214 | } 215 | 216 | "ugc_file_download_start" 217 | { 218 | "hcontent" "uint64" // id of this specific content (may be image or map) 219 | "published_file_id" "uint64" // id of the associated content package 220 | } 221 | // Fired when a match ends or is restarted 222 | "begin_new_match" 223 | { 224 | } 225 | 226 | "round_start_pre_entity" 227 | { 228 | } 229 | 230 | "teamplay_round_start" // round restart 231 | { 232 | "full_reset" "bool" // is this a full reset of the map 233 | } 234 | 235 | "hostname_changed" 236 | { 237 | "hostname" "string" 238 | } 239 | 240 | "difficulty_changed" 241 | { 242 | "newDifficulty" "short" 243 | "oldDifficulty" "short" 244 | "strDifficulty" "string" // new difficulty as string 245 | } 246 | 247 | "finale_start" 248 | { 249 | "rushes" "short" 250 | } 251 | 252 | "game_message" // a message send by game logic to everyone 253 | { 254 | "target" "byte" // 0 = console, 1 = HUD 255 | "text" "string" // the message text 256 | } 257 | 258 | "dm_bonus_weapon_start" 259 | { 260 | "time" "short" // The length of time that this bonus lasts 261 | "Pos" "short" // Loadout position of the bonus weapon 262 | } 263 | 264 | // "survival_announce_player_left" 265 | // { 266 | // "alive" "short" // The # of players left alive 267 | // } 268 | 269 | "survival_announce_phase" 270 | { 271 | "phase" "short" // The phase # 272 | } 273 | 274 | "break_breakable" 275 | { 276 | "entindex" "long" 277 | "userid" "player_pawn" 278 | "material" "byte" // BREAK_GLASS, BREAK_WOOD, etc 279 | } 280 | 281 | "broken_breakable" 282 | { 283 | "entindex" "long" 284 | "userid" "player_pawn" 285 | "material" "byte" // BREAK_GLASS, BREAK_WOOD, etc 286 | } 287 | 288 | "break_prop" 289 | { 290 | "entindex" "long" 291 | "userid" "player_pawn" 292 | } 293 | 294 | "player_decal" 295 | { 296 | "userid" "player_pawn" 297 | } 298 | 299 | "entity_killed" 300 | { 301 | "entindex_killed" "long" 302 | "entindex_attacker" "long" 303 | "entindex_inflictor" "long" 304 | "damagebits" "long" 305 | } 306 | 307 | "bonus_updated" 308 | { 309 | "numadvanced" "short" 310 | "numbronze" "short" 311 | "numsilver" "short" 312 | "numgold" "short" 313 | } 314 | 315 | "player_stats_updated" 316 | { 317 | "forceupload" "bool" 318 | } 319 | 320 | "achievement_event" 321 | { 322 | "achievement_name" "string" // non-localized name of achievement 323 | "cur_val" "short" // # of steps toward achievement 324 | "max_val" "short" // total # of steps in achievement 325 | } 326 | 327 | // sent whenever an achievement that's tracked on the HUD increases 328 | "achievement_increment" 329 | { 330 | "achievement_id" "long" // ID of achievement that went up 331 | "cur_val" "short" // # of steps toward achievement 332 | "max_val" "short" // total # of steps in achievement 333 | } 334 | 335 | "achievement_earned" 336 | { 337 | "player" "player_controller" // entindex of the player 338 | "achievement" "short" // achievement ID 339 | } 340 | 341 | // Used for a notification message when an achievement fails to write 342 | "achievement_write_failed" 343 | { 344 | } 345 | 346 | "physgun_pickup" 347 | { 348 | "target" "ehandle" // entity picked up 349 | } 350 | 351 | "flare_ignite_npc" 352 | { 353 | "entindex" "long" // entity ignited 354 | } 355 | 356 | "helicopter_grenade_punt_miss" 357 | { 358 | } 359 | 360 | "user_data_downloaded" // fired when achievements/stats are downloaded from Steam or XBox Live 361 | { 362 | } 363 | 364 | "ragdoll_dissolved" 365 | { 366 | "entindex" "long" 367 | } 368 | 369 | "gameinstructor_draw" 370 | { 371 | } 372 | 373 | "gameinstructor_nodraw" 374 | { 375 | } 376 | 377 | "map_transition" 378 | { 379 | } 380 | 381 | "entity_visible" 382 | { 383 | "userid" "player_controller" // The player who sees the entity 384 | "subject" "short" // Entindex of the entity they see 385 | "classname" "string" // Classname of the entity they see 386 | "entityname" "string" // name of the entity they see 387 | } 388 | 389 | "set_instructor_group_enabled" 390 | { 391 | "group" "string" 392 | "enabled" "short" 393 | } 394 | 395 | "instructor_server_hint_create" //create a hint using data supplied entirely by the server/map. Intended for hints to smooth playtests before content is ready to make the hint unneccessary. NOT INTENDED AS A SHIPPABLE CRUTCH 396 | { 397 | "userid" "player_controller" // user ID of the player that triggered the hint 398 | "hint_name" "string" // what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout) 399 | "hint_replace_key" "string" // type name so that messages of the same type will replace each other 400 | "hint_target" "long" // entity id that the hint should display at 401 | "hint_activator_userid" "player_controller" // userid id of the activator 402 | "hint_timeout" "short" // how long in seconds until the hint automatically times out, 0 = never 403 | "hint_icon_onscreen" "string" // the hint icon to use when the hint is onscreen. e.g. "icon_alert_red" 404 | "hint_icon_offscreen" "string" // the hint icon to use when the hint is offscreen. e.g. "icon_alert" 405 | "hint_caption" "string" // the hint caption. e.g. "#ThisIsDangerous" 406 | "hint_activator_caption" "string" // the hint caption that only the activator sees e.g. "#YouPushedItGood" 407 | "hint_color" "string" // the hint color in "r,g,b" format where each component is 0-255 408 | "hint_icon_offset" "float" // how far on the z axis to offset the hint from entity origin 409 | "hint_range" "float" // range before the hint is culled 410 | "hint_flags" "long" // hint flags 411 | "hint_binding" "string" // bindings to use when use_binding is the onscreen icon 412 | "hint_gamepad_binding" "string" // gamepad bindings to use when use_binding is the onscreen icon 413 | "hint_allow_nodraw_target" "bool" // if false, the hint will dissappear if the target entity is invisible 414 | "hint_nooffscreen" "bool" // if true, the hint will not show when outside the player view 415 | "hint_forcecaption" "bool" // if true, the hint caption will show even if the hint is occluded 416 | "hint_local_player_only" "bool" // if true, only the local player will see the hint 417 | } 418 | 419 | "instructor_server_hint_stop" //destroys a server/map created hint 420 | { 421 | "hint_name" "string" // The hint to stop. Will stop ALL hints with this name 422 | } 423 | 424 | "read_game_titledata" // read user titledata from profile 425 | { 426 | "controllerId" "short" // Controller id of user 427 | } 428 | 429 | "write_game_titledata" // write user titledata in profile 430 | { 431 | "controllerId" "short" // Controller id of user 432 | } 433 | 434 | "reset_game_titledata" // reset user titledata; do not automatically write profile 435 | { 436 | "controllerId" "short" // Controller id of user 437 | } 438 | 439 | ///////////////////////////////////////////// 440 | // Client side events for talking to WeaponSelection HUD 441 | ///////////////////////////////////////////// 442 | "weaponhud_selection" 443 | { 444 | "userid" "player_controller_and_pawn" // Player who this event applies to 445 | "mode" "byte" // EWeaponHudSelectionMode (switch / pickup / drop) 446 | "entindex" "long" // Weapon entity index 447 | } 448 | 449 | ///////////////////////////////////////////// 450 | // Client side VoteController talking to HUD 451 | ///////////////////////////////////////////// 452 | "vote_ended" 453 | { 454 | } 455 | "vote_started" 456 | { 457 | "issue" "string" 458 | "param1" "string" 459 | "team" "byte" 460 | "initiator" "long" // entity id of the player who initiated the vote 461 | } 462 | "vote_changed" 463 | { 464 | "vote_option1" "byte" 465 | "vote_option2" "byte" 466 | "vote_option3" "byte" 467 | "vote_option4" "byte" 468 | "vote_option5" "byte" 469 | "potentialVotes" "byte" 470 | } 471 | "vote_passed" 472 | { 473 | "details" "string" 474 | "param1" "string" 475 | "team" "byte" 476 | } 477 | "vote_failed" 478 | { 479 | "team" "byte" 480 | } 481 | "vote_cast" 482 | { 483 | "vote_option" "byte" // which option the player voted on 484 | "team" "short" 485 | "userid" "player_controller" // player who voted 486 | } 487 | "vote_options" 488 | { 489 | "count" "byte" // Number of options - up to MAX_VOTE_OPTIONS 490 | "option1" "string" 491 | "option2" "string" 492 | "option3" "string" 493 | "option4" "string" 494 | "option5" "string" 495 | } 496 | 497 | "endmatch_mapvote_selecting_map" 498 | { 499 | "count" "byte" // Number of "ties" 500 | "slot1" "byte" 501 | "slot2" "byte" 502 | "slot3" "byte" 503 | "slot4" "byte" 504 | "slot5" "byte" 505 | "slot6" "byte" 506 | "slot7" "byte" 507 | "slot8" "byte" 508 | "slot9" "byte" 509 | "slot10" "byte" 510 | } 511 | 512 | "endmatch_cmm_start_reveal_items" 513 | { 514 | } 515 | 516 | ////////////////////////////////////////////////////////////////////// 517 | // Economy events 518 | ////////////////////////////////////////////////////////////////////// 519 | "inventory_updated" 520 | { 521 | } 522 | "cart_updated" 523 | { 524 | } 525 | "store_pricesheet_updated" 526 | { 527 | } 528 | "gc_connected" 529 | { 530 | } 531 | "item_schema_initialized" 532 | { 533 | } 534 | "client_loadout_changed" 535 | { 536 | } 537 | 538 | "add_player_sonar_icon" 539 | { 540 | "userid" "player_controller" 541 | "pos_x" "float" 542 | "pos_y" "float" 543 | "pos_z" "float" 544 | } 545 | 546 | ////////////////////////////////////////////////////////////////////// 547 | // Debug events 548 | ////////////////////////////////////////////////////////////////////// 549 | "add_bullet_hit_marker" 550 | { 551 | "userid" "player_controller" 552 | "bone" "short" 553 | "pos_x" "short" 554 | "pos_y" "short" 555 | "pos_z" "short" 556 | "ang_x" "short" 557 | "ang_y" "short" 558 | "ang_z" "short" 559 | "start_x" "short" 560 | "start_y" "short" 561 | "start_z" "short" 562 | "hit" "bool" 563 | } 564 | } 565 | -------------------------------------------------------------------------------- /vlua_globals.lua: -------------------------------------------------------------------------------- 1 | ---@diagnostic disable: lowercase-global, deprecated, undefined-doc-name, missing-return 2 | 3 | ---@alias CS_GAME_EVENTS 4 | ---| "\"player_death\"" 5 | ---| "\"other_death\"" 6 | ---| "\"player_hurt\"" 7 | ---| "\"item_purchase\"" 8 | ---| "\"bomb_beginplant\"" 9 | ---| "\"bomb_abortplant\"" 10 | ---| "\"bomb_planted\"" 11 | ---| "\"bomb_defused\"" 12 | ---| "\"bomb_exploded\"" 13 | ---| "\"bomb_dropped\"" 14 | ---| "\"bomb_pickup\"" 15 | ---| "\"defuser_dropped\"" 16 | ---| "\"defuser_pickup\"" 17 | ---| "\"announce_phase_end\"" 18 | ---| "\"cs_intermission\"" 19 | ---| "\"bomb_begindefuse\"" 20 | ---| "\"bomb_abortdefuse\"" 21 | ---| "\"hostage_follows\"" 22 | ---| "\"hostage_hurt\"" 23 | ---| "\"hostage_killed\"" 24 | ---| "\"hostage_recused\"" 25 | ---| "\"hostage_stops_following\"" 26 | ---| "\"hostage_rescued_all\"" 27 | ---| "\"hostage_call_for_help\"" 28 | ---| "\"vip_escaped\"" 29 | ---| "\"vip_killed\"" 30 | ---| "\"player_radio\"" 31 | ---| "\"bomb_beep\"" 32 | ---| "\"weapon_fire\"" 33 | ---| "\"weapon_fire_on_empty\"" 34 | ---| "\"grenade_thrown\"" 35 | ---| "\"weapon_outofammo\"" 36 | ---| "\"weapon_reload\"" 37 | ---| "\"weapon_zoom\"" 38 | ---| "\"silencer_detach\"" 39 | ---| "\"inspect_weapon\"" 40 | ---| "\"weapon_zoom_rifle\"" 41 | ---| "\"player_spawned\"" 42 | ---| "\"item_pickup\"" 43 | ---| "\"item_pickup_slerp\"" 44 | ---| "\"item_pickup_failed\"" 45 | ---| "\"item_remove\"" 46 | ---| "\"ammo_pickup\"" 47 | ---| "\"item_equip\"" 48 | ---| "\"enter_buyzone\"" 49 | ---| "\"exit_buyzone\"" 50 | ---| "\"buytime_ended\"" 51 | ---| "\"enter_bombzone\"" 52 | ---| "\"exit_bombzone\"" 53 | ---| "\"enter_rescue_zone\"" 54 | ---| "\"exit_rescue_zone\"" 55 | ---| "\"silencer_off\"" 56 | ---| "\"silencer_on\"" 57 | ---| "\"buymenu_open\"" 58 | ---| "\"buymenu_close\"" 59 | ---| "\"round_prestart\"" 60 | ---| "\"round_poststart\"" 61 | ---| "\"round_start\"" 62 | ---| "\"round_end\"" 63 | ---| "\"grenade_bounce\"" 64 | ---| "\"hegrenade_detonate\"" 65 | ---| "\"flashbang_detonate\"" 66 | ---| "\"smokegrenade_detonate\"" 67 | ---| "\"smokegrenade_expired\"" 68 | ---| "\"molotov_detonate\"" 69 | ---| "\"decoy_detonate\"" 70 | ---| "\"decoy_started\"" 71 | ---| "\"tagrenade_detonate\"" 72 | ---| "\"inferno_expire\"" 73 | ---| "\"inferno_extinguish\"" 74 | ---| "\"decoy_firing\"" 75 | ---| "\"bullet_impact\"" 76 | ---| "\"player_footstep\"" 77 | ---| "\"player_jump\"" 78 | ---| "\"player_blind\"" 79 | ---| "\"player_falldamage\"" 80 | ---| "\"door_moving\"" 81 | ---| "\"round_freeze_end\"" 82 | ---| "\"mb_input_lock_success\"" 83 | ---| "\"mb_input_lock_cancel\"" 84 | ---| "\"nav_blocked\"" 85 | ---| "\"nav_generate\"" 86 | ---| "\"player_stats_updated\"" 87 | ---| "\"achievement_info_loaded\"" 88 | ---| "\"spec_target_updated\"" 89 | ---| "\"hltv_changed_mode\"" 90 | ---| "\"cs_game_disconnected\"" 91 | ---| "\"cs_round_final_beep\"" 92 | ---| "\"cs_round_start_beep\"" 93 | ---| "\"cs_win_panel_round\"" 94 | ---| "\"cs_win_panel_match\"" 95 | ---| "\"cs_match_end_restart\"" 96 | ---| "\"cs_pre_restart\"" 97 | ---| "\"show_deathpanel\"" 98 | ---| "\"hide_deathpanel\"" 99 | ---| "\"player_avenged_teammate\"" 100 | ---| "\"achievement_earned\"" 101 | ---| "\"achievement_earned_local\"" 102 | ---| "\"match_end_conditions\"" 103 | ---| "\"round_mvp\"" 104 | ---| "\"player_decal\"" 105 | ---| "\"teamplay_round_start\"" 106 | ---| "\"show_survival_respawn_status\"" 107 | ---| "\"client_disconnect\"" 108 | ---| "\"gg_player_levelup\"" 109 | ---| "\"ggtr_player_levelup\"" 110 | ---| "\"ggprogressive_player_levelup\"" 111 | ---| "\"gg_killed_enemy\"" 112 | ---| "\"gg_final_weapon_achieved\"" 113 | ---| "\"gg_bonus_grenade_achieved\"" 114 | ---| "\"switch_team\"" 115 | ---| "\"gg_leader\"" 116 | ---| "\"gg_team_leader\"" 117 | ---| "\"gg_player_impending_upgrade\"" 118 | ---| "\"write_profile_data\"" 119 | ---| "\"trial_time_expired\"" 120 | ---| "\"update_matchmaking_stats\"" 121 | ---| "\"player_reset_vote\"" 122 | ---| "\"enable_restart_voting\"" 123 | ---| "\"sfuievent\"" 124 | ---| "\"start_vote\"" 125 | ---| "\"player_given_c4\"" 126 | ---| "\"gg_reset_round_start_sounds\"" 127 | ---| "\"tr_player_flashbanged\"" 128 | ---| "\"tr_mark_complete\"" 129 | ---| "\"tr_mark_best_time\"" 130 | ---| "\"tr_exit_hint_trigger\"" 131 | ---| "\"bot_takeover\"" 132 | ---| "\"tr_show_finish_msgbox\"" 133 | ---| "\"tr_show_exit_msgbox\"" 134 | ---| "\"jointeam_failed\"" 135 | ---| "\"teamchange_pending\"" 136 | ---| "\"material_default_complete\"" 137 | ---| "\"cs_prev_next_spectator\"" 138 | ---| "\"cs_handle_ime_event\"" 139 | ---| "\"nextlevel_changed\"" 140 | ---| "\"seasoncoin_levelup\"" 141 | ---| "\"tournament_reward\"" 142 | ---| "\"start_halftime\"" 143 | ---| "\"ammo_refill\"" 144 | ---| "\"parachute_pickup\"" 145 | ---| "\"parachute_deploy\"" 146 | ---| "\"dronegun_attack\"" 147 | ---| "\"drone_dispatched\"" 148 | ---| "\"loot_crate_visible\"" 149 | ---| "\"loot_create_opened\"" 150 | ---| "\"open_crate_instr\"" 151 | ---| "\"smoke_beacon_paradrop\"" 152 | ---| "\"survival_paradrop_spawn\"" 153 | ---| "\"survival_paradrop_break\"" 154 | ---| "\"drone_cargo_detached\"" 155 | ---| "\"drone_above_roof\"" 156 | ---| "\"choppers_incoming_warning\"" 157 | ---| "\"firstbombs_incoming_warning\"" 158 | ---| "\"dz_item_interaction\"" 159 | ---| "\"survival_teammate_respawn\"" 160 | ---| "\"survival_no_respawns_warning\"" 161 | ---| "\"survival_no_respawns_final\"" 162 | ---| "\"player_ping\"" 163 | ---| "\"player_ping_stop\"" 164 | ---| "\"player_sound\"" 165 | ---| "\"guardian_wave_restart\"" 166 | ---| "\"team_intro_start\"" 167 | ---| "\"team_intro_end\"" 168 | 169 | 170 | 171 | ---@alias CORE_GAMEEVENTS 172 | ---| "\"server_spawn\"" 173 | ---| "\"server_pre_shutdown\"" 174 | ---| "\"server_shutdown\"" 175 | ---| "\"server_message\"" 176 | ---| "\"server_cvar\"" 177 | ---| "\"player_activate\"" 178 | ---| "\"player_connect_full\"" 179 | ---| "\"player_full_update\"" 180 | ---| "\"player_connect\"" 181 | ---| "\"player_disconnect\"" 182 | ---| "\"player_info\"" 183 | ---| "\"player_spawn\"" 184 | ---| "\"player_team\"" 185 | ---| "\"local_player_team\"" 186 | ---| "\"local_player_controller_team\"" 187 | ---| "\"player_changename\"" 188 | ---| "\"player_hurt\"" 189 | ---| "\"player_chat\"" 190 | ---| "\"local_player_pawn_changed\"" 191 | ---| "\"teamplay_broadcast_audio\"" 192 | ---| "\"finale_start\"" 193 | ---| "\"player_stats_updated\"" 194 | ---| "\"user_data_downloaded\"" 195 | ---| "\"ragdoll_dissolved\"" 196 | ---| "\"team_info\"" 197 | ---| "\"team_score\"" 198 | ---| "\"hltv_cameraman\"" 199 | ---| "\"hltv_chase\"" 200 | ---| "\"hltv_rank_camera\"" 201 | ---| "\"hltv_rank_entity\"" 202 | ---| "\"hltv_fixed\"" 203 | ---| "\"hltv_message\"" 204 | ---| "\"hltv_status\"" 205 | ---| "\"hltv_title\"" 206 | ---| "\"hltv_chat\"" 207 | ---| "\"hltv_versioninfo\"" 208 | ---| "\"hltv_replay\"" 209 | ---| "\"demo_start\"" 210 | ---| "\"demo_stop\"" 211 | ---| "\"demo_skip\"" 212 | ---| "\"map_shutdown\"" 213 | ---| "\"map_transition\"" 214 | ---| "\"hostname_changed\"" 215 | ---| "\"difficulty_changed\"" 216 | ---| "\"game_message\"" 217 | ---| "\"game_newmap\"" 218 | ---| "\"round_start\"" 219 | ---| "\"round_end\"" 220 | ---| "\"round_start_pre_entity\"" 221 | ---| "\"round_start_post_nav\"" 222 | ---| "\"round_freeze_end\"" 223 | ---| "\"teamplay_round_start\"" 224 | ---| "\"player_death\"" 225 | ---| "\"player_footstep\"" 226 | ---| "\"player_hintmessage\"" 227 | ---| "\"break_breakable\"" 228 | ---| "\"break_prop\"" 229 | ---| "\"entity_killed\"" 230 | ---| "\"door_close\"" 231 | ---| "\"vote_started\"" 232 | ---| "\"vote_failed\"" 233 | ---| "\"vote_passed\"" 234 | ---| "\"vote_changed\"" 235 | ---| "\"vote_cast_yes\"" 236 | ---| "\"vote_cast_no\"" 237 | ---| "\"achievement_event\"" 238 | ---| "\"achievement_earned\"" 239 | ---| "\"achievement_write_failed\"" 240 | ---| "\"bonus_updated\"" 241 | ---| "\"spec_target_updated\"" 242 | ---| "\"spec_mode_updated\"" 243 | ---| "\"entity_visible\"" 244 | ---| "\"gameinstructor_draw\"" 245 | ---| "\"gameinstructor_nodraw\"" 246 | ---| "\"flare_ignite_npc\"" 247 | ---| "\"helicopter_grenade_punt_miss\"" 248 | ---| "\"physgun_pickup\"" 249 | ---| "\"inventory_updated\"" 250 | ---| "\"cart_updated\"" 251 | ---| "\"store_pricesheet_updated\"" 252 | ---| "\"item_schema_initialized\"" 253 | ---| "\"drop_rate_modified\"" 254 | ---| "\"event_ticket_modified\"" 255 | ---| "\"gc_connected\"" 256 | ---| "\"instructor_start_lesson\"" 257 | ---| "\"instructor_close_lesson\"" 258 | ---| "\"instructor_server_hint_create\"" 259 | ---| "\"instructor_server_hint_stop\"" 260 | ---| "\"set_instructor_group_enabled\"" 261 | ---| "\"clientside_lesson_closed\"" 262 | ---| "\"dynamic_shadow_light_changed\"" 263 | 264 | --** Gameevents that are identical to the oens in core_gameevents are not included 265 | ---@alias CSGO_GAMEEVENTS 266 | ---| "\"gameui_hidden\"" 267 | ---| "\"items_gifted\"" 268 | ---| "\"player_score\"" 269 | ---| "\"player_shoot\"" 270 | ---| "\"game_init\"" 271 | ---| "\"game_newmap\"" 272 | ---| "\"game_start\"" 273 | ---| "\"game_end\"" 274 | ---| "\"round_announce_match_point\"" 275 | ---| "\"round_announce_final\"" 276 | ---| "\"round_announce_last_round_half\"" 277 | ---| "\"round_announce_match_start\"" 278 | ---| "\"round_announce_warmup\"" 279 | ---| "\"round_end\"" 280 | ---| "\"round_end_upload_stats\"" 281 | ---| "\"round_officially_ended\"" 282 | ---| "\"round_time_warning\"" 283 | ---| "\"ugc_map_info_recieved\"" 284 | ---| "\"ugc_map_unsubscribed\"" 285 | ---| "\"ugc_map_download_error\"" 286 | ---| "\"ugc_file_download_finished\"" 287 | ---| "\"ugc_file_download_start\"" 288 | ---| "\"begin_new_match\"" 289 | ---| "\"dm_bonus_weapon_start\"" 290 | ---| "\"survival_announce_phase\"" 291 | ---| "\"break_breakable\"" 292 | ---| "\"broken_breakable\"" 293 | ---| "\"map_transition\"" 294 | ---| "\"read_game_titledata\"" 295 | ---| "\"write_game_titledata\"" 296 | ---| "\"reset_game_titledata\"" 297 | ---| "\"weaponhud_selection\"" 298 | ---| "\"vote_options\"" 299 | ---| "\"endmatch_mapvote_selecting_map\"" 300 | ---| "\"endmatch_cmm_start_reveal_items\"" 301 | 302 | ---@alias ALL_GAME_EVENTS CS_GAME_EVENTS | CSGO_GAME_EVENTS | CORE_GAMEEVENTS 303 | 304 | --- AngleDiff Returns the number of degrees difference between two yaw angles 305 | ---@return float 306 | ---@param float_1 float 307 | ---@param float_2 float 308 | function AngleDiff( float_1, float_2 ) end 309 | 310 | --- AnglesToVector Generate a vector given a QAngles 311 | ---@return Vector 312 | ---@param QAngle_1 QAngle 313 | function AnglesToVector( QAngle_1 ) end 314 | 315 | --- AppendToLogFile AppendToLogFile is deprecated. Print to the console for logging instead. 316 | ---@return void 317 | ---@param string_1 string 318 | ---@param string_2 string 319 | function AppendToLogFile( string_1, string_2 ) end 320 | 321 | --- AxisAngleToQuaternion (vector,float) constructs a quaternion representing a rotation by angle around the specified vector axis 322 | ---@return Quaternion 323 | ---@param Vector_1 Vector 324 | ---@param float_2 float 325 | function AxisAngleToQuaternion( Vector_1, float_2 ) end 326 | 327 | --- CalcClosestPointOnEntityOBB Compute the closest point on the OBB of an entity. 328 | ---@return Vector 329 | ---@param handle_1 handle 330 | ---@param Vector_2 Vector 331 | function CalcClosestPointOnEntityOBB( handle_1, Vector_2 ) end 332 | 333 | --- CalcDistanceBetweenEntityOBB Compute the distance between two entity OBB. A negative return value indicates an input error. A return value of zero indicates that the OBBs are overlapping. 334 | ---@return float 335 | ---@param handle_1 handle 336 | ---@param handle_2 handle 337 | function CalcDistanceBetweenEntityOBB( handle_1, handle_2 ) end 338 | 339 | --- CalcDistanceToLineSegment2D 340 | ---@return float 341 | ---@param Vector_1 Vector 342 | ---@param Vector_2 Vector 343 | ---@param Vector_3 Vector 344 | function CalcDistanceToLineSegment2D( Vector_1, Vector_2, Vector_3 ) end 345 | 346 | --- CancelEntityIOEvents Create all I/O events for a particular entity 347 | ---@return void 348 | ---@param ehandle_1 ehandle 349 | function CancelEntityIOEvents( ehandle_1 ) end 350 | 351 | --- CreateDamageInfo (hInflictor, hAttacker, flDamage) - Allocate a damageinfo object, used as an argument to TakeDamage(). Call DestroyDamageInfo( hInfo ) to free the object. 352 | ---@return handle 353 | ---@param handle_1 handle 354 | ---@param handle_2 handle 355 | ---@param Vector_3 Vector 356 | ---@param Vector_4 Vector 357 | ---@param float_5 float 358 | ---@param int_6 int 359 | function CreateDamageInfo( handle_1, handle_2, Vector_3, Vector_4, float_5, int_6 ) end 360 | 361 | --- CreateEffect Pass table - Inputs: entity, effect 362 | ---@return bool 363 | ---@param handle_1 handle 364 | function CreateEffect( handle_1 ) end 365 | 366 | --- CreateSceneEntity Create a scene entity to play the specified scene. 367 | ---@return handle 368 | ---@param string_1 string 369 | function CreateSceneEntity( string_1 ) end 370 | 371 | --- CreateTrigger CreateTrigger( vecMin, vecMax ) : Creates and returns an AABB trigger 372 | ---@return handle 373 | ---@param Vector_1 Vector 374 | ---@param Vector_2 Vector 375 | ---@param Vector_3 Vector 376 | function CreateTrigger( Vector_1, Vector_2, Vector_3 ) end 377 | 378 | --- CreateTriggerRadiusApproximate CreateTriggerRadiusApproximate( vecOrigin, flRadius ) : Creates and returns an AABB trigger thats bigger than the radius provided 379 | ---@return handle 380 | ---@param Vector_1 Vector 381 | ---@param float_2 float 382 | function CreateTriggerRadiusApproximate( Vector_1, float_2 ) end 383 | 384 | --- CreateUniformRandomStream ( iSeed ) - Creates a separate random number stream. 385 | ---@return handle 386 | ---@param int_1 int 387 | function CreateUniformRandomStream( int_1 ) end 388 | 389 | --- CrossVectors (vector,vector) cross product between two vectors 390 | ---@return Vector 391 | ---@param Vector_1 Vector 392 | ---@param Vector_2 Vector 393 | function CrossVectors( Vector_1, Vector_2 ) end 394 | 395 | --- DebugBreak Breaks in the debugger 396 | ---@return void 397 | function DebugBreak( ) end 398 | 399 | --- DebugDrawBox Draw a debug overlay box (origin, mins, maxs, forward, r, g, b, a, duration ) 400 | ---@return void 401 | ---@param Vector_1 Vector 402 | ---@param Vector_2 Vector 403 | ---@param Vector_3 Vector 404 | ---@param int_4 int 405 | ---@param int_5 int 406 | ---@param int_6 int 407 | ---@param int_7 int 408 | ---@param float_8 float 409 | function DebugDrawBox( Vector_1, Vector_2, Vector_3, int_4, int_5, int_6, int_7, float_8 ) end 410 | 411 | --- DebugDrawBoxDirection Draw a debug forward box (cent, min, max, forward, vRgb, a, duration) 412 | ---@return void 413 | ---@param Vector_1 Vector 414 | ---@param Vector_2 Vector 415 | ---@param Vector_3 Vector 416 | ---@param Vector_4 Vector 417 | ---@param Vector_5 Vector 418 | ---@param float_6 float 419 | ---@param float_7 float 420 | function DebugDrawBoxDirection( Vector_1, Vector_2, Vector_3, Vector_4, Vector_5, float_6, float_7 ) end 421 | 422 | --- DebugDrawCircle Draw a debug circle (center, vRgb, a, rad, ztest, duration) 423 | ---@return void 424 | ---@param Vector_1 Vector 425 | ---@param Vector_2 Vector 426 | ---@param float_3 float 427 | ---@param float_4 float 428 | ---@param bool_5 bool 429 | ---@param float_6 float 430 | function DebugDrawCircle( Vector_1, Vector_2, float_3, float_4, bool_5, float_6 ) end 431 | 432 | --- DebugDrawClear Try to clear all the debug overlay info 433 | ---@return void 434 | function DebugDrawClear( ) end 435 | 436 | --- DebugDrawLine Draw a debug overlay line (origin, target, r, g, b, ztest, duration) 437 | ---@return void 438 | ---@param Vector_1 Vector 439 | ---@param Vector_2 Vector 440 | ---@param int_3 int 441 | ---@param int_4 int 442 | ---@param int_5 int 443 | ---@param bool_6 bool 444 | ---@param float_7 float 445 | function DebugDrawLine( Vector_1, Vector_2, int_3, int_4, int_5, bool_6, float_7 ) end 446 | 447 | --- DebugDrawLine_vCol Draw a debug line using color vec (start, end, vRgb, a, ztest, duration) 448 | ---@return void 449 | ---@param Vector_1 Vector 450 | ---@param Vector_2 Vector 451 | ---@param Vector_3 Vector 452 | ---@param bool_4 bool 453 | ---@param float_5 float 454 | function DebugDrawLine_vCol( Vector_1, Vector_2, Vector_3, bool_4, float_5 ) end 455 | 456 | --- DebugDrawScreenTextLine Draw text with a line offset (x, y, lineOffset, text, r, g, b, a, duration) 457 | ---@return void 458 | ---@param float_1 float 459 | ---@param float_2 float 460 | ---@param int_3 int 461 | ---@param string_4 string 462 | ---@param int_5 int 463 | ---@param int_6 int 464 | ---@param int_7 int 465 | ---@param int_8 int 466 | ---@param float_9 float 467 | function DebugDrawScreenTextLine( float_1, float_2, int_3, string_4, int_5, int_6, int_7, int_8, float_9 ) end 468 | 469 | --- DebugDrawSphere Draw a debug sphere (center, vRgb, a, rad, ztest, duration) 470 | ---@return void 471 | ---@param Vector_1 Vector 472 | ---@param Vector_2 Vector 473 | ---@param float_3 float 474 | ---@param float_4 float 475 | ---@param bool_5 bool 476 | ---@param float_6 float 477 | function DebugDrawSphere( Vector_1, Vector_2, float_3, float_4, bool_5, float_6 ) end 478 | 479 | --- DebugDrawText Draw text in 3d (origin, text, bViewCheck, duration) 480 | ---@return void 481 | ---@param Vector_1 Vector 482 | ---@param string_2 string 483 | ---@param bool_3 bool 484 | ---@param float_4 float 485 | function DebugDrawText( Vector_1, string_2, bool_3, float_4 ) end 486 | 487 | --- DebugScreenTextPretty Draw pretty debug text (x, y, lineOffset, text, r, g, b, a, duration, font, size, bBold) 488 | ---@return void 489 | ---@param float_1 float 490 | ---@param float_2 float 491 | ---@param int_3 int 492 | ---@param string_4 string 493 | ---@param int_5 int 494 | ---@param int_6 int 495 | ---@param int_7 int 496 | ---@param int_8 int 497 | ---@param float_9 float 498 | ---@param string_10 string 499 | ---@param int_11 int 500 | ---@param bool_12 bool 501 | function DebugScreenTextPretty( float_1, float_2, int_3, string_4, int_5, int_6, int_7, int_8, float_9, string_10, int_11, bool_12 ) end 502 | 503 | --- DestroyDamageInfo Free a damageinfo object that was created with CreateDamageInfo(). 504 | ---@return void 505 | ---@param handle_1 handle 506 | function DestroyDamageInfo( handle_1 ) end 507 | 508 | --- DoEntFire #EntFire:Generate and entity i/o event 509 | ---@return void 510 | ---@param string_1 string 511 | ---@param string_2 string 512 | ---@param string_3 string 513 | ---@param float_4 float 514 | ---@param handle_5 handle 515 | ---@param handle_6 handle 516 | function DoEntFire( string_1, string_2, string_3, float_4, handle_5, handle_6 ) end 517 | 518 | --- DoEntFireByInstanceHandle #EntFireByHandle:Generate and entity i/o event 519 | ---@return void 520 | ---@param handle_1 handle 521 | ---@param string_2 string 522 | ---@param string_3 string 523 | ---@param float_4 float 524 | ---@param handle_5 handle 525 | ---@param handle_6 handle 526 | function DoEntFireByInstanceHandle( handle_1, string_2, string_3, float_4, handle_5, handle_6 ) end 527 | 528 | --- DoIncludeScript Execute a script (internal) 529 | ---@return bool 530 | ---@param string_1 string 531 | ---@param handle_2 handle 532 | function DoIncludeScript( string_1, handle_2 ) end 533 | 534 | --- DoScriptAssert #ScriptAssert:Asserts the passed in value. Prints out a message and brings up the assert dialog. 535 | ---@return void 536 | ---@param bool_1 bool 537 | ---@param string_2 string 538 | function DoScriptAssert( bool_1, string_2 ) end 539 | 540 | --- DoUniqueString #UniqueString:Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to tables when not sure what keys are already in use in that table. 541 | ---@return string 542 | ---@param string_1 string 543 | function DoUniqueString( string_1 ) end 544 | 545 | --- EmitSoundOn Play named sound on Entity 546 | ---@return void 547 | ---@param string_1 string 548 | ---@param handle_2 handle 549 | function EmitSoundOn( string_1, handle_2 ) end 550 | 551 | --- EmitSoundOnClient Play named sound only on the client for the passed in player 552 | ---@return void 553 | ---@param string_1 string 554 | ---@param handle_2 handle 555 | function EmitSoundOnClient( string_1, handle_2 ) end 556 | 557 | --- EntIndexToHScript Turn an entity index integer to an HScript representing that entity's script instance. 558 | ---@return handle 559 | ---@param int_1 int 560 | function EntIndexToHScript( int_1 ) end 561 | 562 | --- ExponentialDecay Smooth curve decreasing slower as it approaches zero 563 | ---@return float 564 | ---@param float_1 float 565 | ---@param float_2 float 566 | ---@param float_3 float 567 | function ExponentialDecay( float_1, float_2, float_3 ) end 568 | 569 | --- FireEntityIOInputNameOnly Fire Entity's Action Input w/no data 570 | ---@return void 571 | ---@param ehandle_1 ehandle 572 | ---@param string_2 string 573 | function FireEntityIOInputNameOnly( ehandle_1, string_2 ) end 574 | 575 | --- FireEntityIOInputString Fire Entity's Action Input with passed String - you own the memory 576 | ---@return void 577 | ---@param ehandle_1 ehandle 578 | ---@param string_2 string 579 | ---@param string_3 string 580 | function FireEntityIOInputString( ehandle_1, string_2, string_3 ) end 581 | 582 | --- FireEntityIOInputVec Fire Entity's Action Input with passed Vector - you own the memory 583 | ---@return void 584 | ---@param ehandle_1 ehandle 585 | ---@param string_2 string 586 | ---@param Vector_3 Vector 587 | function FireEntityIOInputVec( ehandle_1, string_2, Vector_3 ) end 588 | 589 | --- FireGameEvent Fire a game event. 590 | ---@return void 591 | ---@param gameEvent ALL_GAME_EVENTS 592 | ---@param handle_2 handle 593 | function FireGameEvent( gameEvent, handle_2 ) end 594 | 595 | --- FireGameEventLocal Fire a game event without broadcasting to the client. 596 | ---@return void 597 | ---@param gameEvent ALL_GAME_EVENTS 598 | ---@param handle_2 handle 599 | function FireGameEventLocal( gameEvent, handle_2 ) end 600 | 601 | --- FrameTime Get the time spent on the server in the last frame 602 | ---@return float 603 | function FrameTime( ) end 604 | 605 | --- GetActiveSpawnGroupHandle Returns the currently active spawn group handle 606 | ---@return int 607 | function GetActiveSpawnGroupHandle( ) end 608 | 609 | --- GetFrameCount Returns the engines current frame count 610 | ---@return int 611 | function GetFrameCount( ) end 612 | 613 | --- GetListenServerHost Get the local player on a listen server. 614 | ---@return handle 615 | function GetListenServerHost( ) end 616 | 617 | --- GetMapName Get the name of the map. 618 | ---@return string 619 | function GetMapName( ) end 620 | 621 | --- GetMaxOutputDelay Get the longest delay for all events attached to an output 622 | ---@return float 623 | ---@param ehandle_1 ehandle 624 | ---@param string_2 string 625 | function GetMaxOutputDelay( ehandle_1, string_2 ) end 626 | 627 | --- GetPhysAngularVelocity Get Angular Velocity for VPHYS or normal object. Returns a vector of the axis of rotation, multiplied by the degrees of rotation per second. 628 | ---@return Vector 629 | ---@param handle_1 handle 630 | function GetPhysAngularVelocity( handle_1 ) end 631 | 632 | --- GetPhysVelocity Get Velocity for VPHYS or normal object 633 | ---@return Vector 634 | ---@param handle_1 handle 635 | function GetPhysVelocity( handle_1 ) end 636 | 637 | --- InitLogFile InitLogFile is deprecated. Print to the console for logging instead. 638 | ---@return void 639 | ---@param string_1 string 640 | ---@param string_2 string 641 | function InitLogFile( string_1, string_2 ) end 642 | 643 | --- IsClient Returns true if this is lua running from the client.dll. 644 | ---@return bool 645 | function IsClient( ) end 646 | 647 | --- IsDedicatedServer Returns true if this server is a dedicated server. 648 | ---@return bool 649 | function IsDedicatedServer( ) end 650 | 651 | --- IsInToolsMode Returns true if this is lua running within tools mode. 652 | ---@return bool 653 | function IsInToolsMode( ) end 654 | 655 | --- IsMarkedForDeletion Returns true if the entity is valid and marked for deletion. 656 | ---@return bool 657 | ---@param handle_1 handle 658 | function IsMarkedForDeletion( handle_1 ) end 659 | 660 | --- IsServer Returns true if this is lua running from the server.dll. 661 | ---@return bool 662 | function IsServer( ) end 663 | 664 | --- IsValidEntity Checks to see if the given hScript is a valid entity 665 | ---@return bool 666 | ---@param handle_1 handle 667 | function IsValidEntity( handle_1 ) end 668 | 669 | --- LerpVectors (vector,vector,float) lerp between two vectors by a float factor returning new vector 670 | ---@return Vector 671 | ---@param Vector_1 Vector 672 | ---@param Vector_2 Vector 673 | ---@param float_3 float 674 | function LerpVectors( Vector_1, Vector_2, float_3 ) end 675 | 676 | --- ListenToGameEvent Register as a listener for a game event from script. 677 | ---@return int 678 | ---@param gameEvent ALL_GAME_EVENTS 679 | ---@param callback function 680 | ---@param handle_3 handle 681 | function ListenToGameEvent( gameEvent, callback, handle_3 ) end 682 | 683 | --- LoadKeyValues Creates a table from the specified keyvalues text file 684 | ---@return table 685 | ---@param string_1 string 686 | function LoadKeyValues( string_1 ) end 687 | 688 | --- LoadKeyValuesFromString Creates a table from the specified keyvalues string 689 | ---@return table 690 | ---@param string_1 string 691 | function LoadKeyValuesFromString( string_1 ) end 692 | 693 | --- LocalTime Get the current local time 694 | ---@return table 695 | function LocalTime( ) end 696 | 697 | --- MakeStringToken Checks to see if the given hScript is a valid entity 698 | ---@return int 699 | ---@param string_1 string 700 | function MakeStringToken( string_1 ) end 701 | 702 | --- ManuallyTriggerSpawnGroupCompletion Triggers the creation of entities in a manually-completed spawn group 703 | ---@return void 704 | ---@param int_1 int 705 | function ManuallyTriggerSpawnGroupCompletion( int_1 ) end 706 | 707 | --- Msg Print a message 708 | ---@return void 709 | ---@param string_1 string 710 | function Msg( string_1 ) end 711 | 712 | --- Plat_FloatTime Get the current float time from the engine 713 | ---@return float 714 | function Plat_FloatTime( ) end 715 | 716 | --- PlayerInstanceFromIndex Get a script instance of a player by index. 717 | ---@return handle 718 | ---@param int_1 int 719 | function PlayerInstanceFromIndex( int_1 ) end 720 | 721 | --- PrecacheEntityFromTable Precache an entity from KeyValues in table 722 | ---@return void 723 | ---@param string_1 string 724 | ---@param handle_2 handle 725 | ---@param handle_3 handle 726 | function PrecacheEntityFromTable( string_1, handle_2, handle_3 ) end 727 | 728 | --- PrecacheEntityListFromTable Precache a list of entity KeyValues tables 729 | ---@return void 730 | ---@param handle_1 handle 731 | ---@param handle_2 handle 732 | function PrecacheEntityListFromTable( handle_1, handle_2 ) end 733 | 734 | --- PrecacheResource ( modelName, context ) - Manually precache a single model 735 | ---@return void 736 | ---@param string_1 string 737 | ---@param handle_2 handle 738 | function PrecacheResource( string_1, handle_2 ) end 739 | 740 | --- PrintLinkedConsoleMessage Print a console message with a linked console command 741 | ---@return void 742 | ---@param string_1 string 743 | ---@param string_2 string 744 | function PrintLinkedConsoleMessage( string_1, string_2 ) end 745 | 746 | --- QSlerp (from angle, to angle, time) - Spherical lerp of angle from->to based on time 747 | ---@return QAngle 748 | ---@param QAngle_1 QAngle 749 | ---@param QAngle_2 QAngle 750 | ---@param float_3 float 751 | function QSlerp( QAngle_1, QAngle_2, float_3 ) end 752 | 753 | --- RandomFloat Get a random float within a range 754 | ---@return float 755 | ---@param float_1 float 756 | ---@param float_2 float 757 | function RandomFloat( float_1, float_2 ) end 758 | 759 | --- RandomInt Get a random int within a range 760 | ---@return int 761 | ---@param int_1 int 762 | ---@param int_2 int 763 | function RandomInt( int_1, int_2 ) end 764 | 765 | --- RegisterSpawnGroupFilterProxy Create a C proxy for a script-based spawn group filter 766 | ---@return void 767 | ---@param string_1 string 768 | function RegisterSpawnGroupFilterProxy( string_1 ) end 769 | 770 | --- ReloadMOTD Reloads the MotD file 771 | ---@return void 772 | function ReloadMOTD( ) end 773 | 774 | --- RemoveSpawnGroupFilterProxy Remove the C proxy for a script-based spawn group filter 775 | ---@return void 776 | ---@param string_1 string 777 | function RemoveSpawnGroupFilterProxy( string_1 ) end 778 | 779 | --- RotateOrientation Rotate a QAngle by another QAngle. 780 | ---@return QAngle 781 | ---@param QAngle_1 QAngle 782 | ---@param QAngle_2 QAngle 783 | function RotateOrientation( QAngle_1, QAngle_2 ) end 784 | 785 | --- RotatePosition Rotate a Vector around a point. 786 | ---@return Vector 787 | ---@param Vector_1 Vector 788 | ---@param QAngle_2 QAngle 789 | ---@param Vector_3 Vector 790 | function RotatePosition( Vector_1, QAngle_2, Vector_3 ) end 791 | 792 | --- RotateQuaternionByAxisAngle (quaternion,vector,float) rotates a quaternion by the specified angle around the specified vector axis 793 | ---@return Quaternion 794 | ---@param Quaternion_1 Quaternion 795 | ---@param Vector_2 Vector 796 | ---@param float_3 float 797 | function RotateQuaternionByAxisAngle( Quaternion_1, Vector_2, float_3 ) end 798 | 799 | --- RotationDelta Find the delta between two QAngles. 800 | ---@return QAngle 801 | ---@param QAngle_1 QAngle 802 | ---@param QAngle_2 QAngle 803 | function RotationDelta( QAngle_1, QAngle_2 ) end 804 | 805 | --- RotationDeltaAsAngularVelocity converts delta QAngle to an angular velocity Vector 806 | ---@return Vector 807 | ---@param QAngle_1 QAngle 808 | ---@param QAngle_2 QAngle 809 | function RotationDeltaAsAngularVelocity( QAngle_1, QAngle_2 ) end 810 | 811 | --- Say Have Entity say string, and teamOnly or not 812 | ---@return void 813 | ---@param handle_1 handle 814 | ---@param string_2 string 815 | ---@param bool_3 bool 816 | function Say( handle_1, string_2, bool_3 ) end 817 | 818 | --- ScreenShake Start a screenshake with the following parameters. vecCenter, flAmplitude, flFrequency, flDuration, flRadius, eCommand( SHAKE_START = 0, SHAKE_STOP = 1 ), bAirShake 819 | ---@return void 820 | ---@param Vector_1 Vector 821 | ---@param float_2 float 822 | ---@param float_3 float 823 | ---@param float_4 float 824 | ---@param float_5 float 825 | ---@param int_6 int 826 | ---@param bool_7 bool 827 | function ScreenShake( Vector_1, float_2, float_3, float_4, float_5, int_6, bool_7 ) end 828 | 829 | --- ScriptCoopCollectBonusCoin Marks one of the bonus coins as collected. 830 | ---@return void 831 | function ScriptCoopCollectBonusCoin( ) end 832 | 833 | --- ScriptCoopExtendRoundDurationTime Extends the round time after checkpoint during the mission. 834 | ---@return void 835 | ---@param float_1 float 836 | function ScriptCoopExtendRoundDurationTime( float_1 ) end 837 | 838 | --- ScriptCoopGiveC4sToCTs Will give the number of specified C4s to all alive CT players. 839 | ---@return void 840 | ---@param int_1 int 841 | function ScriptCoopGiveC4sToCTs( int_1 ) end 842 | 843 | --- ScriptCoopMissionGetMissionNumber Gets the mission number for the current map - maps can have multiple missions on them. 844 | ---@return int 845 | function ScriptCoopMissionGetMissionNumber( ) end 846 | 847 | --- ScriptCoopMissionRespawnDeadPlayers Respawns players only. 848 | ---@return void 849 | function ScriptCoopMissionRespawnDeadPlayers( ) end 850 | 851 | --- ScriptCoopMissionSetDeadPlayerRespawnEnabled Controls whether player respawns can happen. 852 | ---@return void 853 | ---@param bool_1 bool 854 | function ScriptCoopMissionSetDeadPlayerRespawnEnabled( bool_1 ) end 855 | 856 | --- ScriptCoopMissionSetNextRespawnIn Set the next respawn wave to happen in this many seconds. 857 | ---@return void 858 | ---@param float_1 float 859 | ---@param bool_2 bool 860 | function ScriptCoopMissionSetNextRespawnIn( float_1, bool_2 ) end 861 | 862 | --- ScriptCoopMissionSpawnFirstEnemies Spawns the first wave of enemies in coop. 863 | ---@return void 864 | ---@param int_1 int 865 | function ScriptCoopMissionSpawnFirstEnemies( int_1 ) end 866 | 867 | --- ScriptCoopMissionSpawnNextWave Tells the next wave of enemies to spawn in coop. Also respawns player. 868 | ---@return void 869 | ---@param int_1 int 870 | function ScriptCoopMissionSpawnNextWave( int_1 ) end 871 | 872 | --- ScriptCoopResetRoundStartTime Resets the round time and starts the mission. 873 | ---@return void 874 | function ScriptCoopResetRoundStartTime( ) end 875 | 876 | --- ScriptCoopSetBotQuotaAndRefreshSpawns Sets the bot quota considering the # of players connected and refreshes the spawns. 877 | ---@return void 878 | ---@param int_1 int 879 | function ScriptCoopSetBotQuotaAndRefreshSpawns( int_1 ) end 880 | 881 | --- ScriptCoopToggleEntityOutlineHighlights Highlights all dropped weapons for players, or removes all highlights. 882 | ---@return void 883 | ---@param bool_1 bool 884 | function ScriptCoopToggleEntityOutlineHighlights( bool_1 ) end 885 | 886 | --- ScriptGetBestTrainingCourseTime Gets the player's best time for completing the timed course. 887 | ---@return int 888 | function ScriptGetBestTrainingCourseTime( ) end 889 | 890 | --- ScriptGetGameMode Gets the current game mode. 891 | ---@return int 892 | function ScriptGetGameMode( ) end 893 | 894 | --- ScriptGetGameType Gets the current game type. 895 | ---@return int 896 | function ScriptGetGameType( ) end 897 | 898 | --- ScriptGetPlayerCompletedTraining Returns true if the player has completed the initial portion of the training map. 899 | ---@return bool 900 | function ScriptGetPlayerCompletedTraining( ) end 901 | 902 | --- ScriptGetRoundsPlayed Get the number of rounds played so far. 903 | ---@return int 904 | function ScriptGetRoundsPlayed( ) end 905 | 906 | --- ScriptGetValveTrainingCourseTime Gets Valve's best time for completing the timed course. 907 | ---@return int 908 | function ScriptGetValveTrainingCourseTime( ) end 909 | 910 | --- ScriptHighlightAmmoCounter Sends an event that is just used by the instructor system to show a hint highlighting the ammo counter. 911 | ---@return void 912 | function ScriptHighlightAmmoCounter( ) end 913 | 914 | --- ScriptIsLocalPlayerUsingController Returns whether the player is playing with a controller or not. 915 | ---@return bool 916 | function ScriptIsLocalPlayerUsingController( ) end 917 | 918 | --- ScriptIsWarmupPeriod Is it warmup or not. 919 | ---@return bool 920 | function ScriptIsWarmupPeriod( ) end 921 | 922 | --- ScriptLobbyMapVetoFinished Switch to the selected map after lobby map veto finished. 923 | ---@return void 924 | ---@param string_1 string 925 | ---@param bool_2 bool 926 | ---@param bool_3 bool 927 | ---@param string_4 string 928 | function ScriptLobbyMapVetoFinished( string_1, bool_2, bool_3, string_4 ) end 929 | 930 | --- ScriptPrintMessageCenterAll Prints an alert message in the center print method to all players. 931 | ---@return void 932 | ---@param string_1 string 933 | function ScriptPrintMessageCenterAll( string_1 ) end 934 | 935 | --- ScriptPrintMessageCenterAllWithParams Prints an alert message in the center print method to all players. Needs to pass token/message. param1, param2, param3. Can pass null if you need less than 3. 936 | ---@return void 937 | ---@param string_1 string 938 | ---@param string_2 string 939 | ---@param string_3 string 940 | ---@param string_4 string 941 | function ScriptPrintMessageCenterAllWithParams( string_1, string_2, string_3, string_4 ) end 942 | 943 | --- ScriptPrintMessageCenterTeam Prints an alert message in the center print method to the specified team. 944 | ---@return void 945 | ---@param int_1 int 946 | ---@param string_2 string 947 | function ScriptPrintMessageCenterTeam( int_1, string_2 ) end 948 | 949 | --- ScriptPrintMessageChatAll Prints a message in chat to all players. 950 | ---@return void 951 | ---@param string_1 string 952 | function ScriptPrintMessageChatAll( string_1 ) end 953 | 954 | --- ScriptPrintMessageChatTeam Prints a message in chat to the specified team. 955 | ---@return void 956 | ---@param int_1 int 957 | ---@param string_2 string 958 | function ScriptPrintMessageChatTeam( int_1, string_2 ) end 959 | 960 | --- ScriptSetBestTrainingCourseTime Sets the player's best time for completing the timed course. 961 | ---@return void 962 | ---@param int_1 int 963 | function ScriptSetBestTrainingCourseTime( int_1 ) end 964 | 965 | --- ScriptSetMiniScoreHidden Toggles the visibility of the miniscoreboard hud element. 966 | ---@return void 967 | ---@param bool_1 bool 968 | function ScriptSetMiniScoreHidden( bool_1 ) end 969 | 970 | --- ScriptSetPlayerCompletedTraining Sets whether the player has completed the initial portion of the training map. 971 | ---@return void 972 | ---@param bool_1 bool 973 | function ScriptSetPlayerCompletedTraining( bool_1 ) end 974 | 975 | --- ScriptSetRadarHidden Toggles the visibility of the radar hud element. 976 | ---@return void 977 | ---@param bool_1 bool 978 | function ScriptSetRadarHidden( bool_1 ) end 979 | 980 | --- ScriptShowExitDoorMsg Shows a message box in trainign when the player exits through the exit door 981 | ---@return void 982 | function ScriptShowExitDoorMsg( ) end 983 | 984 | --- ScriptShowFinishMsgBox Shows a message box to let players know what to do next after finishing the training course. 985 | ---@return void 986 | function ScriptShowFinishMsgBox( ) end 987 | 988 | --- ScriptTrainingGivePlayerAmmo Refills ammo to max for all weapons the player has (only works in training). 989 | ---@return void 990 | function ScriptTrainingGivePlayerAmmo( ) end 991 | 992 | --- SendToConsole Send a string to the console as a client command 993 | ---@return void 994 | ---@param string_1 string 995 | function SendToConsole( string_1 ) end 996 | 997 | --- SendToServerConsole Send a string to the console as a server command 998 | ---@return void 999 | ---@param string_1 string 1000 | function SendToServerConsole( string_1 ) end 1001 | 1002 | --- SetOpvarFloatAll Sets an opvar value for all players 1003 | ---@return void 1004 | ---@param string_1 string 1005 | ---@param string_2 string 1006 | ---@param string_3 string 1007 | ---@param float_4 float 1008 | function SetOpvarFloatAll( string_1, string_2, string_3, float_4 ) end 1009 | 1010 | --- SetOpvarFloatPlayer Sets an opvar value for a single player 1011 | ---@return void 1012 | ---@param string_1 string 1013 | ---@param string_2 string 1014 | ---@param string_3 string 1015 | ---@param float_4 float 1016 | ---@param handle_5 handle 1017 | function SetOpvarFloatPlayer( string_1, string_2, string_3, float_4, handle_5 ) end 1018 | 1019 | --- SetPhysAngularVelocity Set Angular Velocity for VPHYS or normal object, from a vector of the axis of rotation, multiplied by the degrees of rotation per second. 1020 | ---@return void 1021 | ---@param handle_1 handle 1022 | ---@param Vector_2 Vector 1023 | function SetPhysAngularVelocity( handle_1, Vector_2 ) end 1024 | 1025 | --- SetQuestName Set the current quest name. 1026 | ---@return void 1027 | ---@param string_1 string 1028 | function SetQuestName( string_1 ) end 1029 | 1030 | --- SetQuestPhase Set the current quest phase. 1031 | ---@return void 1032 | ---@param int_1 int 1033 | function SetQuestPhase( int_1 ) end 1034 | 1035 | --- SetRenderingEnabled Set rendering on/off for an ehandle 1036 | ---@return void 1037 | ---@param ehandle_1 ehandle 1038 | ---@param bool_2 bool 1039 | function SetRenderingEnabled( ehandle_1, bool_2 ) end 1040 | 1041 | --- ShowMessage Print a hud message on all clients 1042 | ---@return void 1043 | ---@param string_1 string 1044 | function ShowMessage( string_1 ) end 1045 | 1046 | --- SpawnEntityFromTableAsynchronous Asynchronously spawns a single entity from a table 1047 | ---@return void 1048 | ---@param string_1 string 1049 | ---@param handle_2 handle 1050 | ---@param handle_3 handle 1051 | ---@param handle_4 handle 1052 | function SpawnEntityFromTableAsynchronous( string_1, handle_2, handle_3, handle_4 ) end 1053 | 1054 | --- SpawnEntityFromTableSynchronous Synchronously spawns a single entity from a table 1055 | ---@return handle 1056 | ---@param string_1 string 1057 | ---@param handle_2 handle 1058 | function SpawnEntityFromTableSynchronous( string_1, handle_2 ) end 1059 | 1060 | --- SpawnEntityGroupFromTable Hierarchically spawn an entity group from a set of spawn tables. 1061 | ---@return bool 1062 | ---@param handle_1 handle 1063 | ---@param bool_2 bool 1064 | ---@param handle_3 handle 1065 | function SpawnEntityGroupFromTable( handle_1, bool_2, handle_3 ) end 1066 | 1067 | --- SpawnEntityListFromTableAsynchronous Asynchronously spawn an entity group from a list of spawn tables. A callback will be triggered when the spawning is complete 1068 | ---@return int 1069 | ---@param handle_1 handle 1070 | ---@param handle_2 handle 1071 | function SpawnEntityListFromTableAsynchronous( handle_1, handle_2 ) end 1072 | 1073 | --- SpawnEntityListFromTableSynchronous Synchronously spawn an entity group from a list of spawn tables. 1074 | ---@return handle 1075 | ---@param handle_1 handle 1076 | function SpawnEntityListFromTableSynchronous( handle_1 ) end 1077 | 1078 | --- SplineQuaternions (quaternion,quaternion,float) very basic interpolation of v0 to v1 over t on [0,1] 1079 | ---@return Quaternion 1080 | ---@param Quaternion_1 Quaternion 1081 | ---@param Quaternion_2 Quaternion 1082 | ---@param float_3 float 1083 | function SplineQuaternions( Quaternion_1, Quaternion_2, float_3 ) end 1084 | 1085 | --- SplineVectors (vector,vector,float) very basic interpolation of v0 to v1 over t on [0,1] 1086 | ---@return Vector 1087 | ---@param Vector_1 Vector 1088 | ---@param Vector_2 Vector 1089 | ---@param float_3 float 1090 | function SplineVectors( Vector_1, Vector_2, float_3 ) end 1091 | 1092 | --- StartSoundEvent Start a sound event 1093 | ---@return void 1094 | ---@param string_1 string 1095 | ---@param handle_2 handle 1096 | function StartSoundEvent( string_1, handle_2 ) end 1097 | 1098 | --- StartSoundEventFromPosition Start a sound event from position 1099 | ---@return void 1100 | ---@param string_1 string 1101 | ---@param Vector_2 Vector 1102 | function StartSoundEventFromPosition( string_1, Vector_2 ) end 1103 | 1104 | --- StartSoundEventFromPositionReliable Start a sound event from position with reliable delivery 1105 | ---@return void 1106 | ---@param string_1 string 1107 | ---@param Vector_2 Vector 1108 | function StartSoundEventFromPositionReliable( string_1, Vector_2 ) end 1109 | 1110 | --- StartSoundEventFromPositionUnreliable Start a sound event from position with optional delivery 1111 | ---@return void 1112 | ---@param string_1 string 1113 | ---@param Vector_2 Vector 1114 | function StartSoundEventFromPositionUnreliable( string_1, Vector_2 ) end 1115 | 1116 | --- StartSoundEventReliable Start a sound event with reliable delivery 1117 | ---@return void 1118 | ---@param string_1 string 1119 | ---@param handle_2 handle 1120 | function StartSoundEventReliable( string_1, handle_2 ) end 1121 | 1122 | --- StartSoundEventUnreliable Start a sound event with optional delivery 1123 | ---@return void 1124 | ---@param string_1 string 1125 | ---@param handle_2 handle 1126 | function StartSoundEventUnreliable( string_1, handle_2 ) end 1127 | 1128 | --- StopEffect Pass entity and effect name 1129 | ---@return void 1130 | ---@param handle_1 handle 1131 | ---@param string_2 string 1132 | function StopEffect( handle_1, string_2 ) end 1133 | 1134 | --- StopListeningToAllGameEvents Stop listening to all game events within a specific context. 1135 | ---@return void 1136 | ---@param handle_1 handle 1137 | function StopListeningToAllGameEvents( handle_1 ) end 1138 | 1139 | --- StopListeningToGameEvent Stop listening to a particular game event. 1140 | ---@return bool 1141 | ---@param int_1 int 1142 | function StopListeningToGameEvent( int_1 ) end 1143 | 1144 | --- StopSoundEvent Stops a sound event with optional delivery 1145 | ---@return void 1146 | ---@param string_1 string 1147 | ---@param handle_2 handle 1148 | function StopSoundEvent( string_1, handle_2 ) end 1149 | 1150 | --- StopSoundOn Stop named sound on Entity 1151 | ---@return void 1152 | ---@param string_1 string 1153 | ---@param handle_2 handle 1154 | function StopSoundOn( string_1, handle_2 ) end 1155 | 1156 | --- Time Get the current server time 1157 | ---@return float 1158 | function Time( ) end 1159 | 1160 | --- TraceCollideable Pass table - Inputs: start, end, ent, (optional mins, maxs) -- outputs: pos, fraction, hit, startsolid, normal 1161 | ---@return bool 1162 | ---@param handle_1 handle 1163 | function TraceCollideable( handle_1 ) end 1164 | 1165 | --- TraceHull Pass table - Inputs: start, end, min, max, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid 1166 | ---@return bool 1167 | ---@param handle_1 handle 1168 | function TraceHull( handle_1 ) end 1169 | 1170 | --- TraceLine Pass table - Inputs: startpos, endpos, mask, ignore -- outputs: pos, fraction, hit, enthit, startsolid 1171 | ---@return bool 1172 | ---@param handle_1 handle 1173 | function TraceLine( handle_1 ) end 1174 | 1175 | --- UTIL_MessageText Sends colored text to one client. 1176 | ---@return void 1177 | ---@param int_1 int 1178 | ---@param string_2 string 1179 | ---@param int_3 int 1180 | ---@param int_4 int 1181 | ---@param int_5 int 1182 | ---@param int_6 int 1183 | function UTIL_MessageText( int_1, string_2, int_3, int_4, int_5, int_6 ) end 1184 | 1185 | --- UTIL_MessageTextAll Sends colored text to all clients. 1186 | ---@return void 1187 | ---@param string_1 string 1188 | ---@param int_2 int 1189 | ---@param int_3 int 1190 | ---@param int_4 int 1191 | ---@param int_5 int 1192 | function UTIL_MessageTextAll( string_1, int_2, int_3, int_4, int_5 ) end 1193 | 1194 | --- UTIL_MessageTextAll_WithContext Sends colored text to all clients. (Valid context keys: player_id, value, team_id) 1195 | ---@return void 1196 | ---@param string_1 string 1197 | ---@param int_2 int 1198 | ---@param int_3 int 1199 | ---@param int_4 int 1200 | ---@param int_5 int 1201 | ---@param handle_6 handle 1202 | function UTIL_MessageTextAll_WithContext( string_1, int_2, int_3, int_4, int_5, handle_6 ) end 1203 | 1204 | --- UTIL_MessageText_WithContext Sends colored text to one client. (Valid context keys: player_id, value, team_id) 1205 | ---@return void 1206 | ---@param int_1 int 1207 | ---@param string_2 string 1208 | ---@param int_3 int 1209 | ---@param int_4 int 1210 | ---@param int_5 int 1211 | ---@param int_6 int 1212 | ---@param handle_7 handle 1213 | function UTIL_MessageText_WithContext( int_1, string_2, int_3, int_4, int_5, int_6, handle_7 ) end 1214 | 1215 | --- UTIL_Remove Removes the specified entity 1216 | ---@return void 1217 | ---@param handle_1 handle 1218 | function UTIL_Remove( handle_1 ) end 1219 | 1220 | --- UTIL_RemoveImmediate Immediately removes the specified entity 1221 | ---@return void 1222 | ---@param handle_1 handle 1223 | function UTIL_RemoveImmediate( handle_1 ) end 1224 | 1225 | --- UTIL_ResetMessageText Clear all message text on one client. 1226 | ---@return void 1227 | ---@param int_1 int 1228 | function UTIL_ResetMessageText( int_1 ) end 1229 | 1230 | --- UTIL_ResetMessageTextAll Clear all message text from all clients. 1231 | ---@return void 1232 | function UTIL_ResetMessageTextAll( ) end 1233 | 1234 | --- UnloadSpawnGroup Unload a spawn group by name 1235 | ---@return void 1236 | ---@param string_1 string 1237 | function UnloadSpawnGroup( string_1 ) end 1238 | 1239 | --- UnloadSpawnGroupByHandle Unload a spawn group by handle 1240 | ---@return void 1241 | ---@param int_1 int 1242 | function UnloadSpawnGroupByHandle( int_1 ) end 1243 | 1244 | --- UserIDToControllerHScript Turn a userid integer (typically, fields named 'userid' in game events) to an HScript representing the associated player controller's script instance. 1245 | ---@return handle 1246 | ---@param int_1 int 1247 | function UserIDToControllerHScript( int_1 ) end 1248 | 1249 | --- VectorToAngles Get Qangles (with no roll) for a Vector. 1250 | ---@return QAngle 1251 | ---@param Vector_1 Vector 1252 | function VectorToAngles( Vector_1 ) end 1253 | 1254 | --- Warning Print a warning 1255 | ---@return void 1256 | ---@param string_1 string 1257 | function Warning( string_1 ) end 1258 | 1259 | --- cvar_getf Gets the value of the given cvar, as a float. 1260 | ---@return float 1261 | ---@param string_1 string 1262 | function cvar_getf( string_1 ) end 1263 | 1264 | --- cvar_setf Sets the value of the given cvar, as a float. 1265 | ---@return bool 1266 | ---@param string_1 string 1267 | ---@param float_2 float 1268 | function cvar_setf( string_1, float_2 ) end 1269 | 1270 | --- CBaseAnimGraph:GetGraphParameter Get the value of the given animGraph parameter 1271 | ---@return table 1272 | ---@param pszParam string 1273 | function CBaseAnimGraph:GetGraphParameter( pszParam ) end 1274 | 1275 | --- CBaseAnimGraph:SetGraphLookTarget Pass the desired look target in world space to the graph 1276 | ---@return void 1277 | ---@param vValue Vector 1278 | function CBaseAnimGraph:SetGraphLookTarget( vValue ) end 1279 | 1280 | --- CBaseAnimGraph:SetGraphParameter Set the specific param value, type is inferred from the type in script 1281 | ---@return void 1282 | ---@param pszParam string 1283 | ---@param svArg table 1284 | function CBaseAnimGraph:SetGraphParameter( pszParam, svArg ) end 1285 | 1286 | --- CBaseAnimGraph:SetGraphParameterBool Set the specific param on or off 1287 | ---@return void 1288 | ---@param szName string 1289 | ---@param bValue bool 1290 | function CBaseAnimGraph:SetGraphParameterBool( szName, bValue ) end 1291 | 1292 | --- CBaseAnimGraph:SetGraphParameterEnum Pass the enum (int) value to the specified param 1293 | ---@return void 1294 | ---@param szName string 1295 | ---@param nValue int 1296 | function CBaseAnimGraph:SetGraphParameterEnum( szName, nValue ) end 1297 | 1298 | --- CBaseAnimGraph:SetGraphParameterFloat Pass the float value to the specified param 1299 | ---@return void 1300 | ---@param szName string 1301 | ---@param flValue float 1302 | function CBaseAnimGraph:SetGraphParameterFloat( szName, flValue ) end 1303 | 1304 | --- CBaseAnimGraph:SetGraphParameterInt Pass the int value to the specified param 1305 | ---@return void 1306 | ---@param szName string 1307 | ---@param nValue int 1308 | function CBaseAnimGraph:SetGraphParameterInt( szName, nValue ) end 1309 | 1310 | --- CBaseAnimGraph:SetGraphParameterVector Pass the vector value to the specified param in the graph 1311 | ---@return void 1312 | ---@param szName string 1313 | ---@param vValue Vector 1314 | function CBaseAnimGraph:SetGraphParameterVector( szName, vValue ) end 1315 | 1316 | --- CBaseEntity:AddEffects AddEffects( int ): Adds the render effect flag. 1317 | ---@return void 1318 | ---@param nFlags int 1319 | function CBaseEntity:AddEffects( nFlags ) end 1320 | 1321 | --- CBaseEntity:ApplyAbsVelocityImpulse Apply a Velocity Impulse 1322 | ---@return void 1323 | ---@param vecImpulse Vector 1324 | function CBaseEntity:ApplyAbsVelocityImpulse( vecImpulse ) end 1325 | 1326 | --- CBaseEntity:ApplyLocalAngularVelocityImpulse Apply an Ang Velocity Impulse 1327 | ---@return void 1328 | ---@param angImpulse Vector 1329 | function CBaseEntity:ApplyLocalAngularVelocityImpulse( angImpulse ) end 1330 | 1331 | --- CBaseEntity:Attribute_GetFloatValue Get float value for an entity attribute. 1332 | ---@return float 1333 | ---@param pName string 1334 | ---@param flDefault float 1335 | function CBaseEntity:Attribute_GetFloatValue( pName, flDefault ) end 1336 | 1337 | --- CBaseEntity:Attribute_GetIntValue Get int value for an entity attribute. 1338 | ---@return int 1339 | ---@param pName string 1340 | ---@param nDefault int 1341 | function CBaseEntity:Attribute_GetIntValue( pName, nDefault ) end 1342 | 1343 | --- CBaseEntity:Attribute_SetFloatValue Set float value for an entity attribute. 1344 | ---@return void 1345 | ---@param pName string 1346 | ---@param flValue float 1347 | function CBaseEntity:Attribute_SetFloatValue( pName, flValue ) end 1348 | 1349 | --- CBaseEntity:Attribute_SetIntValue Set int value for an entity attribute. 1350 | ---@return void 1351 | ---@param pName string 1352 | ---@param nValue int 1353 | function CBaseEntity:Attribute_SetIntValue( pName, nValue ) end 1354 | 1355 | --- CBaseEntity:DeleteAttribute Delete an entity attribute. 1356 | ---@return void 1357 | ---@param pName string 1358 | function CBaseEntity:DeleteAttribute( pName ) end 1359 | 1360 | --- CBaseEntity:EmitSound Plays a sound from this entity. 1361 | ---@return void 1362 | ---@param soundname string 1363 | function CBaseEntity:EmitSound( soundname ) end 1364 | 1365 | --- CBaseEntity:EmitSoundParams Plays/modifies a sound from this entity. changes sound if nPitch and/or flVol or flSoundTime is > 0. 1366 | ---@return void 1367 | ---@param soundname string 1368 | ---@param nPitch int 1369 | ---@param flVolume float 1370 | ---@param flDelay float 1371 | function CBaseEntity:EmitSoundParams( soundname, nPitch, flVolume, flDelay ) end 1372 | 1373 | --- CBaseEntity:EyeAngles Get the qangles that this entity is looking at. 1374 | ---@return QAngle 1375 | function CBaseEntity:EyeAngles( ) end 1376 | 1377 | --- CBaseEntity:EyePosition Get vector to eye position - absolute coords. 1378 | ---@return Vector 1379 | function CBaseEntity:EyePosition( ) end 1380 | 1381 | --- CBaseEntity:FirstMoveChild 1382 | ---@return handle 1383 | function CBaseEntity:FirstMoveChild( ) end 1384 | 1385 | --- CBaseEntity:FollowEntity hEntity to follow, bool bBoneMerge 1386 | ---@return void 1387 | ---@param hEnt handle 1388 | ---@param bBoneMerge bool 1389 | function CBaseEntity:FollowEntity( hEnt, bBoneMerge ) end 1390 | 1391 | --- CBaseEntity:FollowEntityMerge hEntity to follow, string BoneOrAttachName 1392 | ---@return void 1393 | ---@param hEnt handle 1394 | ---@param pszBoneOrAttachName string 1395 | function CBaseEntity:FollowEntityMerge( hEnt, pszBoneOrAttachName ) end 1396 | 1397 | --- CBaseEntity:GatherCriteria Returns a table containing the criteria that would be used for response queries on this entity. This is the same as the table that is passed to response rule script function callbacks. 1398 | ---@return void 1399 | ---@param hResult handle 1400 | function CBaseEntity:GatherCriteria( hResult ) end 1401 | 1402 | --- CBaseEntity:GetAbsOrigin 1403 | ---@return Vector 1404 | function CBaseEntity:GetAbsOrigin( ) end 1405 | 1406 | --- CBaseEntity:GetAbsScale 1407 | ---@return float 1408 | function CBaseEntity:GetAbsScale( ) end 1409 | 1410 | --- CBaseEntity:GetAngles 1411 | ---@return QAngle 1412 | function CBaseEntity:GetAngles( ) end 1413 | 1414 | --- CBaseEntity:GetAnglesAsVector Get entity pitch, yaw, roll as a vector. 1415 | ---@return Vector 1416 | function CBaseEntity:GetAnglesAsVector( ) end 1417 | 1418 | --- CBaseEntity:GetAngularVelocity Get the local angular velocity - returns a vector of pitch,yaw,roll 1419 | ---@return Vector 1420 | function CBaseEntity:GetAngularVelocity( ) end 1421 | 1422 | --- CBaseEntity:GetBaseVelocity Get Base? velocity. 1423 | ---@return Vector 1424 | function CBaseEntity:GetBaseVelocity( ) end 1425 | 1426 | --- CBaseEntity:GetBoundingMaxs Get a vector containing max bounds, centered on object. 1427 | ---@return Vector 1428 | function CBaseEntity:GetBoundingMaxs( ) end 1429 | 1430 | --- CBaseEntity:GetBoundingMins Get a vector containing min bounds, centered on object. 1431 | ---@return Vector 1432 | function CBaseEntity:GetBoundingMins( ) end 1433 | 1434 | --- CBaseEntity:GetBounds Get a table containing the 'Mins' & 'Maxs' vector bounds, centered on object. 1435 | ---@return table 1436 | function CBaseEntity:GetBounds( ) end 1437 | 1438 | --- CBaseEntity:GetCenter Get vector to center of object - absolute coords 1439 | ---@return Vector 1440 | function CBaseEntity:GetCenter( ) end 1441 | 1442 | --- CBaseEntity:GetChildren Get the entities parented to this entity. 1443 | ---@return handle 1444 | function CBaseEntity:GetChildren( ) end 1445 | 1446 | --- CBaseEntity:GetContext GetContext( name ): looks up a context and returns it if available. May return string, float, or null (if the context isn't found). 1447 | ---@return table 1448 | ---@param name string 1449 | function CBaseEntity:GetContext( name ) end 1450 | 1451 | --- CBaseEntity:GetForwardVector Get the forward vector of the entity. 1452 | ---@return Vector 1453 | function CBaseEntity:GetForwardVector( ) end 1454 | 1455 | --- CBaseEntity:GetHealth Get the health of this entity. 1456 | ---@return int 1457 | function CBaseEntity:GetHealth( ) end 1458 | 1459 | --- CBaseEntity:GetLeftVector Get the left vector of the entity. 1460 | ---@return Vector 1461 | function CBaseEntity:GetLeftVector( ) end 1462 | 1463 | --- CBaseEntity:GetLocalAngles Get entity local pitch, yaw, roll as a QAngle 1464 | ---@return QAngle 1465 | function CBaseEntity:GetLocalAngles( ) end 1466 | 1467 | --- CBaseEntity:GetLocalAngularVelocity Maybe local angvel 1468 | ---@return QAngle 1469 | function CBaseEntity:GetLocalAngularVelocity( ) end 1470 | 1471 | --- CBaseEntity:GetLocalOrigin Get entity local origin as a Vector 1472 | ---@return Vector 1473 | function CBaseEntity:GetLocalOrigin( ) end 1474 | 1475 | --- CBaseEntity:GetLocalScale 1476 | ---@return float 1477 | function CBaseEntity:GetLocalScale( ) end 1478 | 1479 | --- CBaseEntity:GetLocalVelocity Get Entity relative velocity. 1480 | ---@return Vector 1481 | function CBaseEntity:GetLocalVelocity( ) end 1482 | 1483 | --- CBaseEntity:GetMass Get the mass of an entity. (returns 0 if it doesn't have a physics object) 1484 | ---@return float 1485 | function CBaseEntity:GetMass( ) end 1486 | 1487 | --- CBaseEntity:GetMaxHealth Get the maximum health of this entity. 1488 | ---@return int 1489 | function CBaseEntity:GetMaxHealth( ) end 1490 | 1491 | --- CBaseEntity:GetModelName Returns the name of the model. 1492 | ---@return string 1493 | function CBaseEntity:GetModelName( ) end 1494 | 1495 | --- CBaseEntity:GetMoveParent If in hierarchy, retrieves the entity's parent. 1496 | ---@return handle 1497 | function CBaseEntity:GetMoveParent( ) end 1498 | 1499 | --- CBaseEntity:GetOrigin 1500 | ---@return Vector 1501 | function CBaseEntity:GetOrigin( ) end 1502 | 1503 | --- CBaseEntity:GetOwner Gets this entity's owner 1504 | ---@return handle 1505 | function CBaseEntity:GetOwner( ) end 1506 | 1507 | --- CBaseEntity:GetOwnerEntity Get the owner entity, if there is one 1508 | ---@return handle 1509 | function CBaseEntity:GetOwnerEntity( ) end 1510 | 1511 | --- CBaseEntity:GetRightVector Get the right vector of the entity. WARNING: This produces a left-handed coordinate system. Use GetLeftVector instead (which is aligned with the y axis of the entity). 1512 | ---@return Vector 1513 | function CBaseEntity:GetRightVector( ) end 1514 | 1515 | --- CBaseEntity:GetRootMoveParent If in hierarchy, walks up the hierarchy to find the root parent. 1516 | ---@return handle 1517 | function CBaseEntity:GetRootMoveParent( ) end 1518 | 1519 | --- CBaseEntity:GetSoundDuration Returns float duration of the sound. Takes soundname and optional actormodelname. 1520 | ---@return float 1521 | ---@param soundname string 1522 | ---@param actormodel string 1523 | function CBaseEntity:GetSoundDuration( soundname, actormodel ) end 1524 | 1525 | --- CBaseEntity:GetSpawnGroupHandle Returns the spawn group handle of this entity 1526 | ---@return int 1527 | function CBaseEntity:GetSpawnGroupHandle( ) end 1528 | 1529 | --- CBaseEntity:GetTeam Get the team number of this entity. 1530 | ---@return int 1531 | function CBaseEntity:GetTeam( ) end 1532 | 1533 | --- CBaseEntity:GetTeamNumber Get the team number of this entity. 1534 | ---@return int 1535 | function CBaseEntity:GetTeamNumber( ) end 1536 | 1537 | --- CBaseEntity:GetUpVector Get the up vector of the entity. 1538 | ---@return Vector 1539 | function CBaseEntity:GetUpVector( ) end 1540 | 1541 | --- CBaseEntity:GetVelocity 1542 | ---@return Vector 1543 | function CBaseEntity:GetVelocity( ) end 1544 | 1545 | --- CBaseEntity:HasAttribute See if an entity has a particular attribute. 1546 | ---@return bool 1547 | ---@param pName string 1548 | function CBaseEntity:HasAttribute( pName ) end 1549 | 1550 | --- CBaseEntity:IsAlive Is this entity alive? 1551 | ---@return bool 1552 | function CBaseEntity:IsAlive( ) end 1553 | 1554 | --- CBaseEntity:IsNPC Is this entity an CAI_BaseNPC? 1555 | ---@return bool 1556 | function CBaseEntity:IsNPC( ) end 1557 | 1558 | --- CBaseEntity:IsPlayerController Is this entity a player controller? 1559 | ---@return bool 1560 | function CBaseEntity:IsPlayerController( ) end 1561 | 1562 | --- CBaseEntity:IsPlayerPawn Is this entity a player pawn? 1563 | ---@return bool 1564 | function CBaseEntity:IsPlayerPawn( ) end 1565 | 1566 | --- CBaseEntity:Kill 1567 | ---@return void 1568 | function CBaseEntity:Kill( ) end 1569 | 1570 | --- CBaseEntity:NextMovePeer 1571 | ---@return handle 1572 | function CBaseEntity:NextMovePeer( ) end 1573 | 1574 | --- CBaseEntity:OverrideFriction Takes duration, value for a temporary override. 1575 | ---@return void 1576 | ---@param duration float 1577 | ---@param friction float 1578 | function CBaseEntity:OverrideFriction( duration, friction ) end 1579 | 1580 | --- CBaseEntity:PrecacheScriptSound Precache a sound for later playing. 1581 | ---@return void 1582 | ---@param soundname string 1583 | function CBaseEntity:PrecacheScriptSound( soundname ) end 1584 | 1585 | --- CBaseEntity:RemoveEffects RemoveEffects( int ): Removes the render effect flag. 1586 | ---@return void 1587 | ---@param nFlags int 1588 | function CBaseEntity:RemoveEffects( nFlags ) end 1589 | 1590 | --- CBaseEntity:SetAbsAngles Set entity pitch, yaw, roll by component. 1591 | ---@return void 1592 | ---@param fPitch float 1593 | ---@param fYaw float 1594 | ---@param fRoll float 1595 | function CBaseEntity:SetAbsAngles( fPitch, fYaw, fRoll ) end 1596 | 1597 | --- CBaseEntity:SetAbsOrigin 1598 | ---@return void 1599 | ---@param origin Vector 1600 | function CBaseEntity:SetAbsOrigin( origin ) end 1601 | 1602 | --- CBaseEntity:SetAbsScale 1603 | ---@return void 1604 | ---@param flScale float 1605 | function CBaseEntity:SetAbsScale( flScale ) end 1606 | 1607 | --- CBaseEntity:SetAngles Set entity pitch, yaw, roll by component. 1608 | ---@return void 1609 | ---@param fPitch float 1610 | ---@param fYaw float 1611 | ---@param fRoll float 1612 | function CBaseEntity:SetAngles( fPitch, fYaw, fRoll ) end 1613 | 1614 | --- CBaseEntity:SetAngularVelocity Set the local angular velocity - takes float pitch,yaw,roll velocities 1615 | ---@return void 1616 | ---@param pitchVel float 1617 | ---@param yawVel float 1618 | ---@param rollVel float 1619 | function CBaseEntity:SetAngularVelocity( pitchVel, yawVel, rollVel ) end 1620 | 1621 | --- CBaseEntity:SetConstraint Set the position of the constraint. 1622 | ---@return void 1623 | ---@param vPos Vector 1624 | function CBaseEntity:SetConstraint( vPos ) end 1625 | 1626 | --- CBaseEntity:SetContext SetContext( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a string. Will last for duration (set 0 to mean 'forever'). 1627 | ---@return void 1628 | ---@param pName string 1629 | ---@param pValue string 1630 | ---@param duration float 1631 | function CBaseEntity:SetContext( pName, pValue, duration ) end 1632 | 1633 | --- CBaseEntity:SetContextNum SetContextNum( name , value, duration ): store any key/value pair in this entity's dialog contexts. Value must be a number (int or float). Will last for duration (set 0 to mean 'forever'). 1634 | ---@return void 1635 | ---@param pName string 1636 | ---@param fValue float 1637 | ---@param duration float 1638 | function CBaseEntity:SetContextNum( pName, fValue, duration ) end 1639 | 1640 | --- CBaseEntity:SetContextThink Set a think function on this entity. 1641 | ---@return void 1642 | ---@param pszContextName string 1643 | ---@param hThinkFunc handle 1644 | ---@param flInterval float 1645 | function CBaseEntity:SetContextThink( pszContextName, hThinkFunc, flInterval ) end 1646 | 1647 | --- CBaseEntity:SetEntityName Set the name of an entity. 1648 | ---@return void 1649 | ---@param pName string 1650 | function CBaseEntity:SetEntityName( pName ) end 1651 | 1652 | --- CBaseEntity:SetForwardVector Set the orientation of the entity to have this forward vector. 1653 | ---@return void 1654 | ---@param v Vector 1655 | function CBaseEntity:SetForwardVector( v ) end 1656 | 1657 | --- CBaseEntity:SetFriction Set PLAYER friction, ignored for objects. 1658 | ---@return void 1659 | ---@param flFriction float 1660 | function CBaseEntity:SetFriction( flFriction ) end 1661 | 1662 | --- CBaseEntity:SetGravity Set PLAYER gravity, ignored for objects. 1663 | ---@return void 1664 | ---@param flGravity float 1665 | function CBaseEntity:SetGravity( flGravity ) end 1666 | 1667 | --- CBaseEntity:SetHealth Set the health of this entity. 1668 | ---@return void 1669 | ---@param nHealth int 1670 | function CBaseEntity:SetHealth( nHealth ) end 1671 | 1672 | --- CBaseEntity:SetLocalAngles Set entity local pitch, yaw, roll by component 1673 | ---@return void 1674 | ---@param fPitch float 1675 | ---@param fYaw float 1676 | ---@param fRoll float 1677 | function CBaseEntity:SetLocalAngles( fPitch, fYaw, fRoll ) end 1678 | 1679 | --- CBaseEntity:SetLocalOrigin Set entity local origin from a Vector 1680 | ---@return void 1681 | ---@param origin Vector 1682 | function CBaseEntity:SetLocalOrigin( origin ) end 1683 | 1684 | --- CBaseEntity:SetLocalScale 1685 | ---@return void 1686 | ---@param flScale float 1687 | function CBaseEntity:SetLocalScale( flScale ) end 1688 | 1689 | --- CBaseEntity:SetMass Set the mass of an entity. (does nothing if it doesn't have a physics object) 1690 | ---@return void 1691 | ---@param flMass float 1692 | function CBaseEntity:SetMass( flMass ) end 1693 | 1694 | --- CBaseEntity:SetMaxHealth Set the maximum health of this entity. 1695 | ---@return void 1696 | ---@param amt int 1697 | function CBaseEntity:SetMaxHealth( amt ) end 1698 | 1699 | --- CBaseEntity:SetOrigin 1700 | ---@return void 1701 | ---@param v Vector 1702 | function CBaseEntity:SetOrigin( v ) end 1703 | 1704 | --- CBaseEntity:SetOwner Sets this entity's owner 1705 | ---@return void 1706 | ---@param pOwner handle 1707 | function CBaseEntity:SetOwner( pOwner ) end 1708 | 1709 | --- CBaseEntity:SetParent Set the parent for this entity. 1710 | ---@return void 1711 | ---@param hParent handle 1712 | ---@param pAttachmentname string 1713 | function CBaseEntity:SetParent( hParent, pAttachmentname ) end 1714 | 1715 | --- CBaseEntity:SetTeam 1716 | ---@return void 1717 | ---@param iTeamNum int 1718 | function CBaseEntity:SetTeam( iTeamNum ) end 1719 | 1720 | --- CBaseEntity:SetVelocity 1721 | ---@return void 1722 | ---@param vecVelocity Vector 1723 | function CBaseEntity:SetVelocity( vecVelocity ) end 1724 | 1725 | --- CBaseEntity:StopSound Stops a named sound playing from this entity. 1726 | ---@return void 1727 | ---@param soundname string 1728 | function CBaseEntity:StopSound( soundname ) end 1729 | 1730 | --- CBaseEntity:TakeDamage Apply damage to this entity. Use CreateDamageInfo() to create a damageinfo object. 1731 | ---@return int 1732 | ---@param hInfo handle 1733 | function CBaseEntity:TakeDamage( hInfo ) end 1734 | 1735 | --- CBaseEntity:TransformPointEntityToWorld Returns the input Vector transformed from entity to world space 1736 | ---@return Vector 1737 | ---@param vPoint Vector 1738 | function CBaseEntity:TransformPointEntityToWorld( vPoint ) end 1739 | 1740 | --- CBaseEntity:TransformPointWorldToEntity Returns the input Vector transformed from world to entity space 1741 | ---@return Vector 1742 | ---@param vPoint Vector 1743 | function CBaseEntity:TransformPointWorldToEntity( vPoint ) end 1744 | 1745 | --- CBaseEntity:Trigger Fires off this entity's OnTrigger responses. 1746 | ---@return void 1747 | function CBaseEntity:Trigger( ) end 1748 | 1749 | --- CBaseEntity:ValidatePrivateScriptScope Validates the private script scope and creates it if one doesn't exist. 1750 | ---@return void 1751 | function CBaseEntity:ValidatePrivateScriptScope( ) end 1752 | 1753 | --- CBaseFlex:GetCurrentScene Returns the instance of the oldest active scene entity (if any). 1754 | ---@return handle 1755 | function CBaseFlex:GetCurrentScene( ) end 1756 | 1757 | --- CBaseFlex:GetSceneByIndex Returns the instance of the scene entity at the specified index. 1758 | ---@return handle 1759 | ---@param index int 1760 | function CBaseFlex:GetSceneByIndex( index ) end 1761 | 1762 | --- CBaseFlex:ScriptPlayScene ( vcd file, delay ) - play specified vcd file 1763 | ---@return float 1764 | ---@param pszScene string 1765 | ---@param flDelay float 1766 | function CBaseFlex:ScriptPlayScene( pszScene, flDelay ) end 1767 | 1768 | --- CBaseModelEntity:GetAttachmentAngles Get the attachment id's angles as a p,y,r vector. 1769 | ---@return Vector 1770 | ---@param iAttachment int 1771 | function CBaseModelEntity:GetAttachmentAngles( iAttachment ) end 1772 | 1773 | --- CBaseModelEntity:GetAttachmentForward Get the attachment id's forward vector. 1774 | ---@return Vector 1775 | ---@param iAttachment int 1776 | function CBaseModelEntity:GetAttachmentForward( iAttachment ) end 1777 | 1778 | --- CBaseModelEntity:GetAttachmentOrigin Get the attachment id's origin vector. 1779 | ---@return Vector 1780 | ---@param iAttachment int 1781 | function CBaseModelEntity:GetAttachmentOrigin( iAttachment ) end 1782 | 1783 | --- CBaseModelEntity:GetMaterialGroupHash GetMaterialGroupHash(): Get the material group hash of this entity. 1784 | ---@return unsigned 1785 | function CBaseModelEntity:GetMaterialGroupHash( ) end 1786 | 1787 | --- CBaseModelEntity:GetMaterialGroupMask GetMaterialGroupMask(): Get the mesh group mask of this entity. 1788 | ---@return uint64 1789 | function CBaseModelEntity:GetMaterialGroupMask( ) end 1790 | 1791 | --- CBaseModelEntity:GetModelScale Get scale of entity's model. 1792 | ---@return float 1793 | function CBaseModelEntity:GetModelScale( ) end 1794 | 1795 | --- CBaseModelEntity:GetRenderAlpha GetRenderAlpha(): Get the alpha modulation of this entity. 1796 | ---@return int 1797 | function CBaseModelEntity:GetRenderAlpha( ) end 1798 | 1799 | --- CBaseModelEntity:GetRenderColor GetRenderColor(): Get the render color of the entity. 1800 | ---@return Vector 1801 | function CBaseModelEntity:GetRenderColor( ) end 1802 | 1803 | --- CBaseModelEntity:ScriptLookupAttachment Get the named attachment id. 1804 | ---@return int 1805 | ---@param pAttachmentName string 1806 | function CBaseModelEntity:ScriptLookupAttachment( pAttachmentName ) end 1807 | 1808 | --- CBaseModelEntity:SetBodygroup Sets a bodygroup. 1809 | ---@return void 1810 | ---@param iGroup int 1811 | ---@param iValue int 1812 | function CBaseModelEntity:SetBodygroup( iGroup, iValue ) end 1813 | 1814 | --- CBaseModelEntity:SetBodygroupByName Sets a bodygroup by name. 1815 | ---@return void 1816 | ---@param pName string 1817 | ---@param iValue int 1818 | function CBaseModelEntity:SetBodygroupByName( pName, iValue ) end 1819 | 1820 | --- CBaseModelEntity:SetLightGroup SetLightGroup( string ): Sets the light group of the entity. 1821 | ---@return void 1822 | ---@param pLightGroup string 1823 | function CBaseModelEntity:SetLightGroup( pLightGroup ) end 1824 | 1825 | --- CBaseModelEntity:SetMaterialGroup SetMaterialGroup( string ): Set the material group of this entity. 1826 | ---@return void 1827 | ---@param pMaterialGroup string 1828 | function CBaseModelEntity:SetMaterialGroup( pMaterialGroup ) end 1829 | 1830 | --- CBaseModelEntity:SetMaterialGroupHash SetMaterialGroupHash( uint32 ): Set the material group hash of this entity. 1831 | ---@return void 1832 | ---@param nHash unsigned 1833 | function CBaseModelEntity:SetMaterialGroupHash( nHash ) end 1834 | 1835 | --- CBaseModelEntity:SetMaterialGroupMask SetMaterialGroupMask( uint64 ): Set the mesh group mask of this entity. 1836 | ---@return void 1837 | ---@param nMeshGroupMask uint64 1838 | function CBaseModelEntity:SetMaterialGroupMask( nMeshGroupMask ) end 1839 | 1840 | --- CBaseModelEntity:SetModel 1841 | ---@return void 1842 | ---@param pModelName string 1843 | function CBaseModelEntity:SetModel( pModelName ) end 1844 | 1845 | --- CBaseModelEntity:SetModelScale Set scale of entity's model. 1846 | ---@return void 1847 | ---@param flScale float 1848 | function CBaseModelEntity:SetModelScale( flScale ) end 1849 | 1850 | --- CBaseModelEntity:SetRenderAlpha SetRenderAlpha( int ): Set the alpha modulation of this entity. 1851 | ---@return void 1852 | ---@param nAlpha int 1853 | function CBaseModelEntity:SetRenderAlpha( nAlpha ) end 1854 | 1855 | --- CBaseModelEntity:SetRenderColor SetRenderColor( r, g, b ): Sets the render color of the entity. 1856 | ---@return void 1857 | ---@param r int 1858 | ---@param g int 1859 | ---@param b int 1860 | function CBaseModelEntity:SetRenderColor( r, g, b ) end 1861 | 1862 | --- CBaseModelEntity:SetRenderMode SetRenderMode( int ): Sets the render mode of the entity. 1863 | ---@return void 1864 | ---@param nMode int 1865 | function CBaseModelEntity:SetRenderMode( nMode ) end 1866 | 1867 | --- CBaseModelEntity:SetSingleMeshGroup SetSingleMeshGroup( string ): Set a single mesh group for this entity. 1868 | ---@return void 1869 | ---@param pMeshGroupName string 1870 | function CBaseModelEntity:SetSingleMeshGroup( pMeshGroupName ) end 1871 | 1872 | --- CBaseModelEntity:SetSize 1873 | ---@return void 1874 | ---@param mins Vector 1875 | ---@param maxs Vector 1876 | function CBaseModelEntity:SetSize( mins, maxs ) end 1877 | 1878 | --- CBaseModelEntity:SetSkin Set skin (int). 1879 | ---@return void 1880 | ---@param iSkin int 1881 | function CBaseModelEntity:SetSkin( iSkin ) end 1882 | 1883 | --- CBasePlayerController:GetPawn GetPawn() : Returns the pawn for this controller 1884 | ---@return handle 1885 | function CBasePlayerController:GetPawn( ) end 1886 | 1887 | --- CBasePlayerPawn:GetController GetController() : Returns the controller for this pawn 1888 | ---@return handle 1889 | function CBasePlayerPawn:GetController( ) end 1890 | 1891 | --- CBasePlayerPawn:GetEquippedWeapons GetEquippedWeapons() : Returns an array of all the equipped weapons 1892 | ---@return table 1893 | function CBasePlayerPawn:GetEquippedWeapons( ) end 1894 | 1895 | --- CBasePlayerPawn:GetWeaponCount GetWeaponCount() : Gets the number of weapons currently equipped 1896 | ---@return int 1897 | function CBasePlayerPawn:GetWeaponCount( ) end 1898 | 1899 | --- CBasePlayerPawn:IsNoclipping Returns true if the player is in noclip mode. 1900 | ---@return bool 1901 | function CBasePlayerPawn:IsNoclipping( ) end 1902 | 1903 | --- CBaseTrigger:Disable Disable's the trigger 1904 | ---@return void 1905 | function CBaseTrigger:Disable( ) end 1906 | 1907 | --- CBaseTrigger:Enable Enable the trigger 1908 | ---@return void 1909 | function CBaseTrigger:Enable( ) end 1910 | 1911 | --- CBaseTrigger:IsTouching Checks whether the passed entity is touching the trigger. 1912 | ---@return bool 1913 | ---@param hEnt handle 1914 | function CBaseTrigger:IsTouching( hEnt ) end 1915 | 1916 | --- CBodyComponent:AddImpulseAtPosition Apply an impulse at a worldspace position to the physics 1917 | ---@return void 1918 | ---@param Vector_1 Vector 1919 | ---@param Vector_2 Vector 1920 | function CBodyComponent:AddImpulseAtPosition( Vector_1, Vector_2 ) end 1921 | 1922 | --- CBodyComponent:AddVelocity Add linear and angular velocity to the physics object 1923 | ---@return void 1924 | ---@param Vector_1 Vector 1925 | ---@param Vector_2 Vector 1926 | function CBodyComponent:AddVelocity( Vector_1, Vector_2 ) end 1927 | 1928 | --- CBodyComponent:DetachFromParent Detach from its parent 1929 | ---@return void 1930 | function CBodyComponent:DetachFromParent( ) end 1931 | 1932 | --- CBodyComponent:GetSequence Returns the active sequence 1933 | 1934 | ---@return int 1935 | function CBodyComponent:GetSequence( ) end 1936 | 1937 | --- CBodyComponent:IsAttachedToParent Is attached to parent 1938 | ---@return bool 1939 | function CBodyComponent:IsAttachedToParent( ) end 1940 | 1941 | --- CBodyComponent:LookupSequence Returns a sequence id given a name 1942 | 1943 | ---@return int 1944 | ---@param string_1 string 1945 | function CBodyComponent:LookupSequence( string_1 ) end 1946 | 1947 | --- CBodyComponent:SequenceDuration Returns the duration in seconds of the specified sequence 1948 | ---@return float 1949 | ---@param string_1 string 1950 | function CBodyComponent:SequenceDuration( string_1 ) end 1951 | 1952 | --- CBodyComponent:SetAngularVelocity 1953 | ---@return void 1954 | ---@param Vector_1 Vector 1955 | function CBodyComponent:SetAngularVelocity( Vector_1 ) end 1956 | 1957 | --- CBodyComponent:SetMaterialGroup 1958 | ---@return void 1959 | ---@param utlstringtoken_1 utlstringtoken 1960 | function CBodyComponent:SetMaterialGroup( utlstringtoken_1 ) end 1961 | 1962 | --- CBodyComponent:SetVelocity 1963 | ---@return void 1964 | ---@param Vector_1 Vector 1965 | function CBodyComponent:SetVelocity( Vector_1 ) end 1966 | 1967 | --- CCustomGameEventManager:RegisterListener ( string EventName, func CallbackFunction ) - Register a callback to be called when a particular custom event arrives. Returns a listener ID that can be used to unregister later. 1968 | ---@return int 1969 | ---@param string_1 string 1970 | ---@param handle_2 handle 1971 | function CCustomGameEventManager:RegisterListener( string_1, handle_2 ) end 1972 | 1973 | --- CCustomGameEventManager:Send_ServerToAllClients ( string EventName, table EventData ) 1974 | ---@return void 1975 | ---@param string_1 string 1976 | ---@param handle_2 handle 1977 | function CCustomGameEventManager:Send_ServerToAllClients( string_1, handle_2 ) end 1978 | 1979 | --- CCustomGameEventManager:Send_ServerToPlayer ( Entity Player, string EventName, table EventData ) 1980 | ---@return void 1981 | ---@param handle_1 handle 1982 | ---@param string_2 string 1983 | ---@param handle_3 handle 1984 | function CCustomGameEventManager:Send_ServerToPlayer( handle_1, string_2, handle_3 ) end 1985 | 1986 | --- CCustomGameEventManager:Send_ServerToTeam ( int TeamNumber, string EventName, table EventData ) 1987 | ---@return void 1988 | ---@param int_1 int 1989 | ---@param string_2 string 1990 | ---@param handle_3 handle 1991 | function CCustomGameEventManager:Send_ServerToTeam( int_1, string_2, handle_3 ) end 1992 | 1993 | --- CCustomGameEventManager:UnregisterListener ( int ListnerID ) - Unregister a specific listener 1994 | ---@return void 1995 | ---@param int_1 int 1996 | function CCustomGameEventManager:UnregisterListener( int_1 ) end 1997 | 1998 | --- CDebugOverlayScriptHelper:Axis Draws an axis. Specify origin + orientation in world space. 1999 | ---@return void 2000 | ---@param Vector_1 Vector 2001 | ---@param Quaternion_2 2002 | ---@param float_3 float 2003 | ---@param bool_4 bool 2004 | ---@param float_5 float 2005 | function CDebugOverlayScriptHelper:Axis( Vector_1, Quaternion_2, float_3, bool_4, float_5 ) end 2006 | 2007 | --- CDebugOverlayScriptHelper:Box Draws a world-space axis-aligned box. Specify bounds in world space. 2008 | ---@return void 2009 | ---@param Vector_1 Vector 2010 | ---@param Vector_2 Vector 2011 | ---@param int_3 int 2012 | ---@param int_4 int 2013 | ---@param int_5 int 2014 | ---@param int_6 int 2015 | ---@param bool_7 bool 2016 | ---@param float_8 float 2017 | function CDebugOverlayScriptHelper:Box( Vector_1, Vector_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2018 | 2019 | --- CDebugOverlayScriptHelper:BoxAngles Draws an oriented box at the origin. Specify bounds in local space. 2020 | ---@return void 2021 | ---@param Vector_1 Vector 2022 | ---@param Vector_2 Vector 2023 | ---@param Vector_3 Vector 2024 | ---@param Quaternion_4 Quaternion 2025 | ---@param int_5 int 2026 | ---@param int_6 int 2027 | ---@param int_7 int 2028 | ---@param int_8 int 2029 | ---@param bool_9 bool 2030 | ---@param float_10 float 2031 | function CDebugOverlayScriptHelper:BoxAngles( Vector_1, Vector_2, Vector_3,Quaternion_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2032 | 2033 | --- CDebugOverlayScriptHelper:Capsule Draws a capsule. Specify base in world space. 2034 | ---@return void 2035 | ---@param Vector_1 Vector 2036 | ---@param Quaternion_2 Quaternion 2037 | ---@param float_3 float 2038 | ---@param float_4 float 2039 | ---@param int_5 int 2040 | ---@param int_6 int 2041 | ---@param int_7 int 2042 | ---@param int_8 int 2043 | ---@param bool_9 bool 2044 | ---@param float_10 float 2045 | function CDebugOverlayScriptHelper:Capsule( Vector_1, Quaternion_2, float_3, float_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2046 | 2047 | --- CDebugOverlayScriptHelper:Circle Draws a circle. Specify center in world space. 2048 | ---@return void 2049 | ---@param Vector_1 Vector 2050 | ---@param Quaternion_2 Quaternion 2051 | ---@param float_3 float 2052 | ---@param int_4 int 2053 | ---@param int_5 int 2054 | ---@param int_6 int 2055 | ---@param int_7 int 2056 | ---@param bool_8 bool 2057 | ---@param float_9 float 2058 | function CDebugOverlayScriptHelper:Circle( Vector_1,Quaternion_2, float_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2059 | 2060 | --- CDebugOverlayScriptHelper:CircleScreenOriented Draws a circle oriented to the screen. Specify center in world space. 2061 | ---@return void 2062 | ---@param Vector_1 Vector 2063 | ---@param float_2 float 2064 | ---@param int_3 int 2065 | ---@param int_4 int 2066 | ---@param int_5 int 2067 | ---@param int_6 int 2068 | ---@param bool_7 bool 2069 | ---@param float_8 float 2070 | function CDebugOverlayScriptHelper:CircleScreenOriented( Vector_1, float_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2071 | 2072 | --- CDebugOverlayScriptHelper:Cone Draws a wireframe cone. Specify endpoint and direction in world space. 2073 | ---@return void 2074 | ---@param Vector_1 Vector 2075 | ---@param Vector_2 Vector 2076 | ---@param float_3 float 2077 | ---@param float_4 float 2078 | ---@param int_5 int 2079 | ---@param int_6 int 2080 | ---@param int_7 int 2081 | ---@param int_8 int 2082 | ---@param bool_9 bool 2083 | ---@param float_10 float 2084 | function CDebugOverlayScriptHelper:Cone( Vector_1, Vector_2, float_3, float_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2085 | 2086 | --- CDebugOverlayScriptHelper:Cross Draws a screen-aligned cross. Specify origin in world space. 2087 | ---@return void 2088 | ---@param Vector_1 Vector 2089 | ---@param float_2 float 2090 | ---@param int_3 int 2091 | ---@param int_4 int 2092 | ---@param int_5 int 2093 | ---@param int_6 int 2094 | ---@param bool_7 bool 2095 | ---@param float_8 float 2096 | function CDebugOverlayScriptHelper:Cross( Vector_1, float_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2097 | 2098 | --- CDebugOverlayScriptHelper:Cross3D Draws a world-aligned cross. Specify origin in world space. 2099 | ---@return void 2100 | ---@param Vector_1 Vector 2101 | ---@param float_2 float 2102 | ---@param int_3 int 2103 | ---@param int_4 int 2104 | ---@param int_5 int 2105 | ---@param int_6 int 2106 | ---@param bool_7 bool 2107 | ---@param float_8 float 2108 | function CDebugOverlayScriptHelper:Cross3D( Vector_1, float_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2109 | 2110 | --- CDebugOverlayScriptHelper:Cross3DOriented Draws an oriented cross. Specify origin in world space. 2111 | ---@return void 2112 | ---@param Vector_1 Vector 2113 | ---@param Quaternion_2 2114 | ---@param float_3 float 2115 | ---@param int_4 int 2116 | ---@param int_5 int 2117 | ---@param int_6 int 2118 | ---@param int_7 int 2119 | ---@param bool_8 bool 2120 | ---@param float_9 float 2121 | function CDebugOverlayScriptHelper:Cross3DOriented( Vector_1, Quaternion_2, float_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2122 | 2123 | --- CDebugOverlayScriptHelper:DrawTickMarkedLine Draws a dashed line. Specify endpoints in world space. 2124 | ---@return void 2125 | ---@param Vector_1 Vector 2126 | ---@param Vector_2 Vector 2127 | ---@param float_3 float 2128 | ---@param int_4 int 2129 | ---@param int_5 int 2130 | ---@param int_6 int 2131 | ---@param int_7 int 2132 | ---@param int_8 int 2133 | ---@param bool_9 bool 2134 | ---@param float_10 float 2135 | function CDebugOverlayScriptHelper:DrawTickMarkedLine( Vector_1, Vector_2, float_3, int_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2136 | 2137 | --- CDebugOverlayScriptHelper:EntityAttachments Draws the attachments of the entity 2138 | ---@return void 2139 | ---@param ehandle_1 ehandle 2140 | ---@param float_2 float 2141 | ---@param float_3 float 2142 | function CDebugOverlayScriptHelper:EntityAttachments( ehandle_1, float_2, float_3 ) end 2143 | 2144 | --- CDebugOverlayScriptHelper:EntityAxis Draws the axis of the entity origin 2145 | ---@return void 2146 | ---@param ehandle_1 ehandle 2147 | ---@param float_2 float 2148 | ---@param bool_3 bool 2149 | ---@param float_4 float 2150 | function CDebugOverlayScriptHelper:EntityAxis( ehandle_1, float_2, bool_3, float_4 ) end 2151 | 2152 | --- CDebugOverlayScriptHelper:EntityBounds Draws bounds of an entity 2153 | ---@return void 2154 | ---@param ehandle_1 ehandle 2155 | ---@param int_2 int 2156 | ---@param int_3 int 2157 | ---@param int_4 int 2158 | ---@param int_5 int 2159 | ---@param bool_6 bool 2160 | ---@param float_7 float 2161 | function CDebugOverlayScriptHelper:EntityBounds( ehandle_1, int_2, int_3, int_4, int_5, bool_6, float_7 ) end 2162 | 2163 | --- CDebugOverlayScriptHelper:EntitySkeleton Draws the skeleton of the entity 2164 | ---@return void 2165 | ---@param ehandle_1 ehandle 2166 | ---@param float_2 float 2167 | function CDebugOverlayScriptHelper:EntitySkeleton( ehandle_1, float_2 ) end 2168 | 2169 | --- CDebugOverlayScriptHelper:EntityText Draws text on an entity 2170 | ---@return void 2171 | ---@param ehandle_1 ehandle 2172 | ---@param int_2 int 2173 | ---@param string_3 string 2174 | ---@param int_4 int 2175 | ---@param int_5 int 2176 | ---@param int_6 int 2177 | ---@param int_7 int 2178 | ---@param float_8 float 2179 | function CDebugOverlayScriptHelper:EntityText( ehandle_1, int_2, string_3, int_4, int_5, int_6, int_7, float_8 ) end 2180 | 2181 | --- CDebugOverlayScriptHelper:FilledRect2D Draws a screen-space filled 2D rectangle. Coordinates are in pixels. 2182 | ---@return void 2183 | ---@param Vector2D_1 Vector2D 2184 | ---@param Vector2D_2 Vector2D 2185 | ---@param int_3 int 2186 | ---@param int_4 int 2187 | ---@param int_5 int 2188 | ---@param int_6 int 2189 | ---@param float_7 float 2190 | function CDebugOverlayScriptHelper:FilledRect2D( Vector2D_1, Vector2D_2, int_3, int_4, int_5, int_6, float_7 ) end 2191 | 2192 | --- CDebugOverlayScriptHelper:HorzArrow Draws a horizontal arrow. Specify endpoints in world space. 2193 | ---@return void 2194 | ---@param Vector_1 Vector 2195 | ---@param Vector_2 Vector 2196 | ---@param float_3 float 2197 | ---@param int_4 int 2198 | ---@param int_5 int 2199 | ---@param int_6 int 2200 | ---@param int_7 int 2201 | ---@param bool_8 bool 2202 | ---@param float_9 float 2203 | function CDebugOverlayScriptHelper:HorzArrow( Vector_1, Vector_2, float_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2204 | 2205 | --- CDebugOverlayScriptHelper:Line Draws a line between two points 2206 | ---@return void 2207 | ---@param Vector_1 Vector 2208 | ---@param Vector_2 Vector 2209 | ---@param int_3 int 2210 | ---@param int_4 int 2211 | ---@param int_5 int 2212 | ---@param int_6 int 2213 | ---@param bool_7 bool 2214 | ---@param float_8 float 2215 | function CDebugOverlayScriptHelper:Line( Vector_1, Vector_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2216 | 2217 | --- CDebugOverlayScriptHelper:Line2D Draws a line between two points in screenspace 2218 | ---@return void 2219 | ---@param Vector2D_1 Vector2D 2220 | ---@param Vector2D_2 Vector2D 2221 | ---@param int_3 int 2222 | ---@param int_4 int 2223 | ---@param int_5 int 2224 | ---@param int_6 int 2225 | ---@param float_7 float 2226 | function CDebugOverlayScriptHelper:Line2D( Vector2D_1, Vector2D_2, int_3, int_4, int_5, int_6, float_7 ) end 2227 | 2228 | --- CDebugOverlayScriptHelper:PopDebugOverlayScope Pops the identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch. 2229 | ---@return void 2230 | function CDebugOverlayScriptHelper:PopDebugOverlayScope( ) end 2231 | 2232 | --- CDebugOverlayScriptHelper:PushAndClearDebugOverlayScope Pushes an identifier used to group overlays. Deletes all existing overlays using this overlay id. 2233 | ---@return void 2234 | ---@param utlstringtoken_1 utlstringtoken 2235 | function CDebugOverlayScriptHelper:PushAndClearDebugOverlayScope( utlstringtoken_1 ) end 2236 | 2237 | --- CDebugOverlayScriptHelper:PushDebugOverlayScope Pushes an identifier used to group overlays. Overlays marked with this identifier can be deleted in a big batch. 2238 | ---@return void 2239 | ---@param utlstringtoken_1 utlstringtoken 2240 | function CDebugOverlayScriptHelper:PushDebugOverlayScope( utlstringtoken_1 ) end 2241 | 2242 | --- CDebugOverlayScriptHelper:RemoveAllInScope Removes all overlays marked with a specific identifier, regardless of their lifetime. 2243 | ---@return void 2244 | ---@param utlstringtoken_1 utlstringtoken 2245 | function CDebugOverlayScriptHelper:RemoveAllInScope( utlstringtoken_1 ) end 2246 | 2247 | --- CDebugOverlayScriptHelper:SolidCone Draws a solid cone. Specify endpoint and direction in world space. 2248 | ---@return void 2249 | ---@param Vector_1 Vector 2250 | ---@param Vector_2 Vector 2251 | ---@param float_3 float 2252 | ---@param float_4 float 2253 | ---@param int_5 int 2254 | ---@param int_6 int 2255 | ---@param int_7 int 2256 | ---@param int_8 int 2257 | ---@param bool_9 bool 2258 | ---@param float_10 float 2259 | function CDebugOverlayScriptHelper:SolidCone( Vector_1, Vector_2, float_3, float_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2260 | 2261 | --- CDebugOverlayScriptHelper:Sphere Draws a wireframe sphere. Specify center in world space. 2262 | ---@return void 2263 | ---@param Vector_1 Vector 2264 | ---@param float_2 float 2265 | ---@param int_3 int 2266 | ---@param int_4 int 2267 | ---@param int_5 int 2268 | ---@param int_6 int 2269 | ---@param bool_7 bool 2270 | ---@param float_8 float 2271 | function CDebugOverlayScriptHelper:Sphere( Vector_1, float_2, int_3, int_4, int_5, int_6, bool_7, float_8 ) end 2272 | 2273 | --- CDebugOverlayScriptHelper:SweptBox Draws a swept box. Specify endpoints in world space and the bounds in local space. 2274 | ---@return void 2275 | ---@param Vector_1 Vector 2276 | ---@param Vector_2 Vector 2277 | ---@param Vector_3 Vector 2278 | ---@param Vector_4 Vector 2279 | ---@param Quaternion_5 Quaternion_5 2280 | ---@param int_6 int 2281 | ---@param int_7 int 2282 | ---@param int_8 int 2283 | ---@param int_9 int 2284 | ---@param float_10 float 2285 | function CDebugOverlayScriptHelper:SweptBox( Vector_1, Vector_2, Vector_3, Vector_4, Quaternion_5, int_6, int_7, int_8, int_9, float_10 ) end 2286 | 2287 | --- CDebugOverlayScriptHelper:Text Draws 2D text. Specify origin in world space. 2288 | ---@return void 2289 | ---@param Vector_1 Vector 2290 | ---@param int_2 int 2291 | ---@param string_3 string 2292 | ---@param float_4 float 2293 | ---@param int_5 int 2294 | ---@param int_6 int 2295 | ---@param int_7 int 2296 | ---@param int_8 int 2297 | ---@param float_9 float 2298 | function CDebugOverlayScriptHelper:Text( Vector_1, int_2, string_3, float_4, int_5, int_6, int_7, int_8, float_9 ) end 2299 | 2300 | --- CDebugOverlayScriptHelper:Texture Draws a screen-space texture. Coordinates are in pixels. 2301 | ---@return void 2302 | ---@param string_1 string 2303 | ---@param Vector2D_2 Vector2D 2304 | ---@param Vector2D_3 Vector2D 2305 | ---@param int_4 int 2306 | ---@param int_5 int 2307 | ---@param int_6 int 2308 | ---@param int_7 int 2309 | ---@param Vector2D_8 Vector2D 2310 | ---@param Vector2D_9 Vector2D 2311 | ---@param float_10 float 2312 | function CDebugOverlayScriptHelper:Texture( string_1, Vector2D_2, Vector2D_3, int_4, int_5, int_6, int_7, Vector2D_8, Vector2D_9, float_10 ) end 2313 | 2314 | --- CDebugOverlayScriptHelper:Triangle Draws a filled triangle. Specify vertices in world space. 2315 | ---@return void 2316 | ---@param Vector_1 Vector 2317 | ---@param Vector_2 Vector 2318 | ---@param Vector_3 Vector 2319 | ---@param int_4 int 2320 | ---@param int_5 int 2321 | ---@param int_6 int 2322 | ---@param int_7 int 2323 | ---@param bool_8 bool 2324 | ---@param float_9 float 2325 | function CDebugOverlayScriptHelper:Triangle( Vector_1, Vector_2, Vector_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2326 | 2327 | --- CDebugOverlayScriptHelper:VectorText3D Draws 3D text. Specify origin + orientation in world space. 2328 | ---@return void 2329 | ---@param Vector_1 Vector 2330 | ---@param Quaternion_2 Quaternion 2331 | ---@param string_3 string 2332 | ---@param int_4 int 2333 | ---@param int_5 int 2334 | ---@param int_6 int 2335 | ---@param int_7 int 2336 | ---@param bool_8 bool 2337 | ---@param float_9 float 2338 | function CDebugOverlayScriptHelper:VectorText3D( Vector_1, Quaternion_2, string_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2339 | 2340 | --- CDebugOverlayScriptHelper:VertArrow Draws a vertical arrow. Specify endpoints in world space. 2341 | ---@return void 2342 | ---@param Vector_1 Vector 2343 | ---@param Vector_2 Vector 2344 | ---@param float_3 float 2345 | ---@param int_4 int 2346 | ---@param int_5 int 2347 | ---@param int_6 int 2348 | ---@param int_7 int 2349 | ---@param bool_8 bool 2350 | ---@param float_9 float 2351 | function CDebugOverlayScriptHelper:VertArrow( Vector_1, Vector_2, float_3, int_4, int_5, int_6, int_7, bool_8, float_9 ) end 2352 | 2353 | --- CDebugOverlayScriptHelper:YawArrow Draws a arrow associated with a specific yaw. Specify endpoints in world space. 2354 | ---@return void 2355 | ---@param Vector_1 Vector 2356 | ---@param float_2 float 2357 | ---@param float_3 float 2358 | ---@param float_4 float 2359 | ---@param int_5 int 2360 | ---@param int_6 int 2361 | ---@param int_7 int 2362 | ---@param int_8 int 2363 | ---@param bool_9 bool 2364 | ---@param float_10 float 2365 | function CDebugOverlayScriptHelper:YawArrow( Vector_1, float_2, float_3, float_4, int_5, int_6, int_7, int_8, bool_9, float_10 ) end 2366 | 2367 | --- CEntities:CreateByClassname Creates an entity by classname 2368 | ---@return handle 2369 | ---@param string_1 string 2370 | function CEntities:CreateByClassname( string_1 ) end 2371 | 2372 | --- CEntities:FindAllByClassname Finds all entities by class name. Returns an array containing all the found entities. 2373 | ---@return table 2374 | ---@param string_1 string 2375 | function CEntities:FindAllByClassname( string_1 ) end 2376 | 2377 | --- CEntities:FindAllByClassnameWithin Find entities by class name within a radius. 2378 | ---@return table 2379 | ---@param string_1 string 2380 | ---@param Vector_2 Vector 2381 | ---@param float_3 float 2382 | function CEntities:FindAllByClassnameWithin( string_1, Vector_2, float_3 ) end 2383 | 2384 | --- CEntities:FindAllByModel Find entities by model name. 2385 | ---@return table 2386 | ---@param string_1 string 2387 | function CEntities:FindAllByModel( string_1 ) end 2388 | 2389 | --- CEntities:FindAllByName Find all entities by name. Returns an array containing all the found entities in it. 2390 | ---@return table 2391 | ---@param string_1 string 2392 | function CEntities:FindAllByName( string_1 ) end 2393 | 2394 | --- CEntities:FindAllByNameWithin Find entities by name within a radius. 2395 | ---@return table 2396 | ---@param string_1 string 2397 | ---@param Vector_2 Vector 2398 | ---@param float_3 float 2399 | function CEntities:FindAllByNameWithin( string_1, Vector_2, float_3 ) end 2400 | 2401 | --- CEntities:FindAllByTarget Find entities by targetname. 2402 | ---@return table 2403 | ---@param string_1 string 2404 | function CEntities:FindAllByTarget( string_1 ) end 2405 | 2406 | --- CEntities:FindAllInSphere Find entities within a radius. 2407 | ---@return table 2408 | ---@param Vector_1 Vector 2409 | ---@param float_2 float 2410 | function CEntities:FindAllInSphere( Vector_1, float_2 ) end 2411 | 2412 | --- CEntities:FindByClassname Find entities by class name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2413 | ---@return handle 2414 | ---@param handle_1 handle 2415 | ---@param string_2 string 2416 | function CEntities:FindByClassname( handle_1, string_2 ) end 2417 | 2418 | --- CEntities:FindByClassnameNearest Find entities by class name nearest to a point. 2419 | ---@return handle 2420 | ---@param string_1 string 2421 | ---@param Vector_2 Vector 2422 | ---@param float_3 float 2423 | function CEntities:FindByClassnameNearest( string_1, Vector_2, float_3 ) end 2424 | 2425 | --- CEntities:FindByClassnameWithin Find entities by class name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2426 | ---@return handle 2427 | ---@param handle_1 handle 2428 | ---@param string_2 string 2429 | ---@param Vector_3 Vector 2430 | ---@param float_4 float 2431 | function CEntities:FindByClassnameWithin( handle_1, string_2, Vector_3, float_4 ) end 2432 | 2433 | --- CEntities:FindByModel Find entities by model name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2434 | ---@return handle 2435 | ---@param handle_1 handle 2436 | ---@param string_2 string 2437 | function CEntities:FindByModel( handle_1, string_2 ) end 2438 | 2439 | --- CEntities:FindByModelWithin Find entities by model name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2440 | ---@return handle 2441 | ---@param handle_1 handle 2442 | ---@param string_2 string 2443 | ---@param Vector_3 Vector 2444 | ---@param float_4 float 2445 | function CEntities:FindByModelWithin( handle_1, string_2, Vector_3, float_4 ) end 2446 | 2447 | --- CEntities:FindByName Find entities by name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2448 | ---@return handle 2449 | ---@param handle_1 handle 2450 | ---@param string_2 string 2451 | function CEntities:FindByName( handle_1, string_2 ) end 2452 | 2453 | --- CEntities:FindByNameNearest Find entities by name nearest to a point. 2454 | ---@return handle 2455 | ---@param string_1 string 2456 | ---@param Vector_2 Vector 2457 | ---@param float_3 float 2458 | function CEntities:FindByNameNearest( string_1, Vector_2, float_3 ) end 2459 | 2460 | --- CEntities:FindByNameWithin Find entities by name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2461 | ---@return handle 2462 | ---@param handle_1 handle 2463 | ---@param string_2 string 2464 | ---@param Vector_3 Vector 2465 | ---@param float_4 float 2466 | function CEntities:FindByNameWithin( handle_1, string_2, Vector_3, float_4 ) end 2467 | 2468 | --- CEntities:FindByTarget Find entities by targetname. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2469 | ---@return handle 2470 | ---@param handle_1 handle 2471 | ---@param string_2 string 2472 | function CEntities:FindByTarget( handle_1, string_2 ) end 2473 | 2474 | --- CEntities:FindInSphere Find entities within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search 2475 | ---@return handle 2476 | ---@param handle_1 handle 2477 | ---@param Vector_2 Vector 2478 | ---@param float_3 float 2479 | function CEntities:FindInSphere( handle_1, Vector_2, float_3 ) end 2480 | 2481 | --- CEntities:First Begin an iteration over the list of entities 2482 | ---@return handle 2483 | function CEntities:First( ) end 2484 | 2485 | --- CEntities:GetLocalPlayerController Get the local player controller. 2486 | ---@return handle 2487 | function CEntities:GetLocalPlayerController( ) end 2488 | 2489 | --- CEntities:GetLocalPlayerPawn Get the local player pawn. 2490 | ---@return handle 2491 | function CEntities:GetLocalPlayerPawn( ) end 2492 | 2493 | --- CEntities:Next Continue an iteration over the list of entities, providing reference to a previously found entity 2494 | ---@return handle 2495 | ---@param handle_1 handle 2496 | function CEntities:Next( handle_1 ) end 2497 | 2498 | --- CEntityInstance:ConnectOutput Adds an I/O connection that will call the named function on this entity when the specified output fires. 2499 | ---@return void 2500 | ---@param string_1 string 2501 | ---@param string_2 string 2502 | function CEntityInstance:ConnectOutput( string_1, string_2 ) end 2503 | 2504 | --- CEntityInstance:Destroy 2505 | ---@return void 2506 | function CEntityInstance:Destroy( ) end 2507 | 2508 | --- CEntityInstance:DisconnectOutput Removes a connected script function from an I/O event on this entity. 2509 | ---@return void 2510 | ---@param string_1 string 2511 | ---@param string_2 string 2512 | function CEntityInstance:DisconnectOutput( string_1, string_2 ) end 2513 | 2514 | --- CEntityInstance:DisconnectRedirectedOutput Removes a connected script function from an I/O event on the passed entity. 2515 | ---@return void 2516 | ---@param string_1 string 2517 | ---@param string_2 string 2518 | ---@param handle_3 handle 2519 | function CEntityInstance:DisconnectRedirectedOutput( string_1, string_2, handle_3 ) end 2520 | 2521 | --- CEntityInstance:FireOutput Fire an entity output 2522 | ---@return void 2523 | ---@param string_1 string 2524 | ---@param handle_2 handle 2525 | ---@param handle_3 handle 2526 | ---@param table_4 table 2527 | ---@param float_5 float 2528 | function CEntityInstance:FireOutput( string_1, handle_2, handle_3, table_4, float_5 ) end 2529 | 2530 | --- CEntityInstance:GetClassname 2531 | ---@return string 2532 | function CEntityInstance:GetClassname( ) end 2533 | 2534 | --- CEntityInstance:GetDebugName Get the entity name w/help if not defined (i.e. classname/etc) 2535 | ---@return string 2536 | function CEntityInstance:GetDebugName( ) end 2537 | 2538 | --- CEntityInstance:GetEntityHandle Get the entity as an EHANDLE 2539 | ---@return ehandle 2540 | function CEntityInstance:GetEntityHandle( ) end 2541 | 2542 | --- CEntityInstance:GetEntityIndex 2543 | ---@return int 2544 | function CEntityInstance:GetEntityIndex( ) end 2545 | 2546 | --- CEntityInstance:GetIntAttr Get Integer Attribute 2547 | ---@return int 2548 | ---@param string_1 string 2549 | function CEntityInstance:GetIntAttr( string_1 ) end 2550 | 2551 | --- CEntityInstance:GetName 2552 | ---@return string 2553 | function CEntityInstance:GetName( ) end 2554 | 2555 | --- CEntityInstance:GetOrCreatePrivateScriptScope Retrieve, creating if necessary, the private per-instance script-side data associated with an entity 2556 | ---@return handle 2557 | function CEntityInstance:GetOrCreatePrivateScriptScope( ) end 2558 | 2559 | --- CEntityInstance:GetOrCreatePublicScriptScope Retrieve, creating if necessary, the public script-side data associated with an entity 2560 | ---@return handle 2561 | function CEntityInstance:GetOrCreatePublicScriptScope( ) end 2562 | 2563 | --- CEntityInstance:GetPrivateScriptScope Retrieve the private per-instance script-side data associated with an entity 2564 | ---@return handle 2565 | function CEntityInstance:GetPrivateScriptScope( ) end 2566 | 2567 | --- CEntityInstance:GetPublicScriptScope Retrieve the public script-side data associated with an entity 2568 | ---@return handle 2569 | function CEntityInstance:GetPublicScriptScope( ) end 2570 | 2571 | --- CEntityInstance:RedirectOutput Adds an I/O connection that will call the named function on the passed entity when the specified output fires. 2572 | ---@return void 2573 | ---@param string_1 string 2574 | ---@param string_2 string 2575 | ---@param handle_3 handle 2576 | function CEntityInstance:RedirectOutput( string_1, string_2, handle_3 ) end 2577 | 2578 | --- CEntityInstance:RemoveSelf Delete this entity 2579 | ---@return void 2580 | function CEntityInstance:RemoveSelf( ) end 2581 | 2582 | --- CEntityInstance:SetIntAttr Set Integer Attribute 2583 | ---@return void 2584 | ---@param string_1 string 2585 | ---@param int_2 int 2586 | function CEntityInstance:SetIntAttr( string_1, int_2 ) end 2587 | 2588 | --- CEntityInstance:entindex 2589 | ---@return int 2590 | function CEntityInstance:entindex( ) end 2591 | 2592 | --- CEnvEntityMaker:SpawnEntity Create an entity at the location of the maker 2593 | ---@return void 2594 | function CEnvEntityMaker:SpawnEntity( ) end 2595 | 2596 | --- CEnvEntityMaker:SpawnEntityAtEntityOrigin Create an entity at the location of a specified entity instance 2597 | ---@return void 2598 | ---@param hEntity handle 2599 | function CEnvEntityMaker:SpawnEntityAtEntityOrigin( hEntity ) end 2600 | 2601 | --- CEnvEntityMaker:SpawnEntityAtLocation Create an entity at a specified location and orientaton, orientation is Euler angle in degrees (pitch, yaw, roll) 2602 | ---@return void 2603 | ---@param vecAlternateOrigin Vector 2604 | ---@param vecAlternateAngles Vector 2605 | function CEnvEntityMaker:SpawnEntityAtLocation( vecAlternateOrigin, vecAlternateAngles ) end 2606 | 2607 | --- CEnvEntityMaker:SpawnEntityAtNamedEntityOrigin Create an entity at the location of a named entity 2608 | ---@return void 2609 | ---@param pszName string 2610 | function CEnvEntityMaker:SpawnEntityAtNamedEntityOrigin( pszName ) end 2611 | 2612 | --- CEnvProjectedTexture:SetFarRange Set light maximum range 2613 | ---@return void 2614 | ---@param flRange float 2615 | function CEnvProjectedTexture:SetFarRange( flRange ) end 2616 | 2617 | --- CEnvProjectedTexture:SetLinearAttenuation Set light linear attenuation value 2618 | ---@return void 2619 | ---@param flAtten float 2620 | function CEnvProjectedTexture:SetLinearAttenuation( flAtten ) end 2621 | 2622 | --- CEnvProjectedTexture:SetNearRange Set light minimum range 2623 | ---@return void 2624 | ---@param flRange float 2625 | function CEnvProjectedTexture:SetNearRange( flRange ) end 2626 | 2627 | --- CEnvProjectedTexture:SetQuadraticAttenuation Set light quadratic attenuation value 2628 | ---@return void 2629 | ---@param flAtten float 2630 | function CEnvProjectedTexture:SetQuadraticAttenuation( flAtten ) end 2631 | 2632 | --- CEnvProjectedTexture:SetVolumetrics Turn on/off light volumetrics: bool bOn, float flIntensity, float flNoise, int nPlanes, float flPlaneOffset 2633 | ---@return void 2634 | ---@param bOn bool 2635 | ---@param flIntensity float 2636 | ---@param flNoise float 2637 | ---@param nPlanes int 2638 | ---@param flPlaneOffset float 2639 | function CEnvProjectedTexture:SetVolumetrics( bOn, flIntensity, flNoise, nPlanes, flPlaneOffset ) end 2640 | 2641 | --- CHostage:IsBeingCarried Get whether the hostage is currently being carried or not 2642 | ---@return bool 2643 | function CHostage:IsBeingCarried( ) end 2644 | 2645 | --- CInfoData:QueryColor Query color data for this key 2646 | ---@return Vector 2647 | ---@param tok utlstringtoken 2648 | ---@param vDefault Vector 2649 | function CInfoData:QueryColor( tok, vDefault ) end 2650 | 2651 | --- CInfoData:QueryFloat Query float data for this key 2652 | ---@return float 2653 | ---@param tok utlstringtoken 2654 | ---@param flDefault float 2655 | function CInfoData:QueryFloat( tok, flDefault ) end 2656 | 2657 | --- CInfoData:QueryInt Query int data for this key 2658 | ---@return int 2659 | ---@param tok utlstringtoken 2660 | ---@param nDefault int 2661 | function CInfoData:QueryInt( tok, nDefault ) end 2662 | 2663 | --- CInfoData:QueryNumber Query number data for this key 2664 | ---@return float 2665 | ---@param tok utlstringtoken 2666 | ---@param flDefault float 2667 | function CInfoData:QueryNumber( tok, flDefault ) end 2668 | 2669 | --- CInfoData:QueryString Query string data for this key 2670 | ---@return string 2671 | ---@param tok utlstringtoken 2672 | ---@param pDefault string 2673 | function CInfoData:QueryString( tok, pDefault ) end 2674 | 2675 | --- CInfoData:QueryVector Query vector data for this key 2676 | ---@return Vector 2677 | ---@param tok utlstringtoken 2678 | ---@param vDefault Vector 2679 | function CInfoData:QueryVector( tok, vDefault ) end 2680 | 2681 | --- CInfoWorldLayer:HideWorldLayer Hides this layer 2682 | ---@return void 2683 | function CInfoWorldLayer:HideWorldLayer( ) end 2684 | 2685 | --- CInfoWorldLayer:ShowWorldLayer Shows this layer 2686 | ---@return void 2687 | function CInfoWorldLayer:ShowWorldLayer( ) end 2688 | 2689 | --- CLogicRelay:Trigger Trigger( hActivator, hCaller ) : Triggers the logic_relay 2690 | ---@return void 2691 | ---@param hActivator handle 2692 | ---@param hCaller handle 2693 | function CLogicRelay:Trigger( hActivator, hCaller ) end 2694 | 2695 | --- CMarkupVolumeTagged:HasTag Does this volume have the given tag. 2696 | ---@return bool 2697 | ---@param pszTagName string 2698 | function CMarkupVolumeTagged:HasTag( pszTagName ) end 2699 | 2700 | --- CNativeOutputs:AddOutput Add an output 2701 | ---@return void 2702 | ---@param string_1 string 2703 | ---@param string_2 string 2704 | function CNativeOutputs:AddOutput( string_1, string_2 ) end 2705 | 2706 | --- CNativeOutputs:Init Initialize with number of outputs 2707 | ---@return void 2708 | ---@param int_1 int 2709 | function CNativeOutputs:Init( int_1 ) end 2710 | 2711 | --- CPhysicsProp:DisableMotion Disable motion for the prop 2712 | ---@return void 2713 | function CPhysicsProp:DisableMotion( ) end 2714 | 2715 | --- CPhysicsProp:EnableMotion Enable motion for the prop 2716 | ---@return void 2717 | function CPhysicsProp:EnableMotion( ) end 2718 | 2719 | --- CPhysicsProp:SetDynamicVsDynamicContinuous Enable/disable dynamic vs dynamic continuous collision traces 2720 | ---@return void 2721 | ---@param bIsDynamicVsDynamicContinuousEnabled bool 2722 | function CPhysicsProp:SetDynamicVsDynamicContinuous( bIsDynamicVsDynamicContinuousEnabled ) end 2723 | 2724 | --- CPointClientUIWorldPanel:AcceptUserInput Tells the panel to accept user input. 2725 | ---@return void 2726 | function CPointClientUIWorldPanel:AcceptUserInput( ) end 2727 | 2728 | --- CPointClientUIWorldPanel:AddCSSClasses Adds CSS class(es) to the panel 2729 | ---@return void 2730 | ---@param pszClasses string 2731 | function CPointClientUIWorldPanel:AddCSSClasses( pszClasses ) end 2732 | 2733 | --- CPointClientUIWorldPanel:IgnoreUserInput Tells the panel to ignore user input. 2734 | ---@return void 2735 | function CPointClientUIWorldPanel:IgnoreUserInput( ) end 2736 | 2737 | --- CPointClientUIWorldPanel:IsGrabbable Returns whether this entity is grabbable. 2738 | ---@return bool 2739 | function CPointClientUIWorldPanel:IsGrabbable( ) end 2740 | 2741 | --- CPointClientUIWorldPanel:RemoveCSSClasses Remove CSS class(es) from the panel 2742 | ---@return void 2743 | ---@param pszClasses string 2744 | function CPointClientUIWorldPanel:RemoveCSSClasses( pszClasses ) end 2745 | 2746 | --- CPointTemplate:DeleteCreatedSpawnGroups DeleteCreatedSpawnGroups() : Deletes any spawn groups that this point_template has spawned. Note: The point_template will not be deleted by this. 2747 | ---@return void 2748 | function CPointTemplate:DeleteCreatedSpawnGroups( ) end 2749 | 2750 | --- CPointTemplate:ForceSpawn ForceSpawn() : Spawns all of the entities the point_template is pointing at. 2751 | ---@return void 2752 | function CPointTemplate:ForceSpawn( ) end 2753 | 2754 | --- CPointTemplate:GetSpawnedEntities GetSpawnedEntities() : Get the list of the most recent spawned entities 2755 | ---@return handle 2756 | function CPointTemplate:GetSpawnedEntities( ) end 2757 | 2758 | --- CPointTemplate:SetSpawnCallback SetSpawnCallback( hCallbackFunc, hCallbackScope, hCallbackData ) : Set a callback for when the template spawns entities. The spawned entities will be passed in as an array. 2759 | ---@return void 2760 | ---@param hCallbackFunc handle 2761 | ---@param hCallbackScope handle 2762 | function CPointTemplate:SetSpawnCallback( hCallbackFunc, hCallbackScope ) end 2763 | 2764 | --- CPointWorldText:SetMessage Set the message on this entity. 2765 | ---@return void 2766 | ---@param pMessage string 2767 | function CPointWorldText:SetMessage( pMessage ) end 2768 | 2769 | --- CSceneEntity:AddBroadcastTeamTarget Adds a team (by index) to the broadcast list 2770 | ---@return void 2771 | ---@param int_1 int 2772 | function CSceneEntity:AddBroadcastTeamTarget( int_1 ) end 2773 | 2774 | --- CSceneEntity:Cancel Cancel scene playback 2775 | ---@return void 2776 | function CSceneEntity:Cancel( ) end 2777 | 2778 | --- CSceneEntity:EstimateLength Returns length of this scene in seconds. 2779 | ---@return float 2780 | function CSceneEntity:EstimateLength( ) end 2781 | 2782 | --- CSceneEntity:FindCamera Get the camera 2783 | ---@return handle 2784 | function CSceneEntity:FindCamera( ) end 2785 | 2786 | --- CSceneEntity:FindNamedEntity given an entity reference, such as !target, get actual entity from scene object 2787 | ---@return handle 2788 | ---@param string_1 string 2789 | function CSceneEntity:FindNamedEntity( string_1 ) end 2790 | 2791 | --- CSceneEntity:IsPaused If this scene is currently paused. 2792 | ---@return bool 2793 | function CSceneEntity:IsPaused( ) end 2794 | 2795 | --- CSceneEntity:IsPlayingBack If this scene is currently playing. 2796 | ---@return bool 2797 | function CSceneEntity:IsPlayingBack( ) end 2798 | 2799 | --- CSceneEntity:LoadSceneFromString given a dummy scene name and a vcd string, load the scene 2800 | ---@return bool 2801 | ---@param string_1 string 2802 | ---@param string_2 string 2803 | function CSceneEntity:LoadSceneFromString( string_1, string_2 ) end 2804 | 2805 | --- CSceneEntity:RemoveBroadcastTeamTarget Removes a team (by index) from the broadcast list 2806 | ---@return void 2807 | ---@param int_1 int 2808 | function CSceneEntity:RemoveBroadcastTeamTarget( int_1 ) end 2809 | 2810 | --- CSceneEntity:Start Start scene playback, takes activatorEntity as param 2811 | ---@return void 2812 | ---@param handle_1 handle 2813 | function CSceneEntity:Start( handle_1 ) end 2814 | 2815 | --- CScriptKeyValues:GetValue Reads a spawn key 2816 | ---@return table 2817 | ---@param string_1 string 2818 | function CScriptKeyValues:GetValue( string_1 ) end 2819 | 2820 | --- CScriptParticleManager:CreateParticle Creates a new particle effect 2821 | ---@return int 2822 | ---@param string_1 string 2823 | ---@param int_2 int 2824 | ---@param handle_3 handle 2825 | function CScriptParticleManager:CreateParticle( string_1, int_2, handle_3 ) end 2826 | 2827 | --- CScriptParticleManager:CreateParticleForPlayer Creates a new particle effect that only plays for the specified player 2828 | ---@return int 2829 | ---@param string_1 string 2830 | ---@param int_2 int 2831 | ---@param handle_3 handle 2832 | ---@param handle_4 handle 2833 | function CScriptParticleManager:CreateParticleForPlayer( string_1, int_2, handle_3, handle_4 ) end 2834 | 2835 | --- CScriptParticleManager:DestroyParticle (int index, bool bDestroyImmediately) - Destroy a particle, if bDestroyImmediately destroy it without playing end caps. 2836 | ---@return void 2837 | ---@param int_1 int 2838 | ---@param bool_2 bool 2839 | function CScriptParticleManager:DestroyParticle( int_1, bool_2 ) end 2840 | 2841 | --- CScriptParticleManager:GetParticleReplacement 2842 | ---@return string 2843 | ---@param string_1 string 2844 | ---@param handle_2 handle 2845 | function CScriptParticleManager:GetParticleReplacement( string_1, handle_2 ) end 2846 | 2847 | --- CScriptParticleManager:ReleaseParticleIndex Frees the specified particle index 2848 | ---@return void 2849 | ---@param int_1 int 2850 | function CScriptParticleManager:ReleaseParticleIndex( int_1 ) end 2851 | 2852 | --- CScriptParticleManager:SetParticleAlwaysSimulate 2853 | ---@return void 2854 | ---@param int_1 int 2855 | function CScriptParticleManager:SetParticleAlwaysSimulate( int_1 ) end 2856 | 2857 | --- CScriptParticleManager:SetParticleControl Set the control point data for a control on a particle effect 2858 | ---@return void 2859 | ---@param int_1 int 2860 | ---@param int_2 int 2861 | ---@param Vector_3 Vector 2862 | function CScriptParticleManager:SetParticleControl( int_1, int_2, Vector_3 ) end 2863 | 2864 | --- CScriptParticleManager:SetParticleControlEnt 2865 | ---@return void 2866 | ---@param int_1 int 2867 | ---@param int_2 int 2868 | ---@param handle_3 handle 2869 | ---@param int_4 int 2870 | ---@param string_5 string 2871 | ---@param Vector_6 Vector 2872 | ---@param bool_7 bool 2873 | function CScriptParticleManager:SetParticleControlEnt( int_1, int_2, handle_3, int_4, string_5, Vector_6, bool_7 ) end 2874 | 2875 | --- CScriptParticleManager:SetParticleControlOffset (int iIndex, int iPoint, Vector vecOffset ) - Set the linear offset for a control on a particle effect 2876 | ---@return void 2877 | ---@param int_1 int 2878 | ---@param int_2 int 2879 | ---@param Vector_3 Vector 2880 | function CScriptParticleManager:SetParticleControlOffset( int_1, int_2, Vector_3 ) end 2881 | 2882 | --- CScriptParticleManager:SetParticleControlTransform (int iIndex, int iPoint, Vector vOrigin, QAngle qAngles ) - Set the transform for a control on a particle effect 2883 | ---@return void 2884 | ---@param int_1 int 2885 | ---@param int_2 int 2886 | ---@param Vector_3 Vector 2887 | ---@param QAngle_4 QAngle 2888 | function CScriptParticleManager:SetParticleControlTransform( int_1, int_2, Vector_3, QAngle_4 ) end 2889 | 2890 | --- CScriptParticleManager:SetParticleControlTransformForward (int iIndex, int iPoint, Vector vOrigin, Vector vecForward ) - Set the origin and forward direction for a control on a particle effect 2891 | ---@return void 2892 | ---@param int_1 int 2893 | ---@param int_2 int 2894 | ---@param Vector_3 Vector 2895 | ---@param Vector_4 Vector 2896 | function CScriptParticleManager:SetParticleControlTransformForward( int_1, int_2, Vector_3, Vector_4 ) end 2897 | 2898 | --- CScriptPrecacheContext:AddResource Precaches a specific resource 2899 | ---@return void 2900 | ---@param string_1 string 2901 | function CScriptPrecacheContext:AddResource( string_1 ) end 2902 | 2903 | --- CScriptPrecacheContext:GetValue Reads a spawn key 2904 | ---@return table 2905 | ---@param string_1 string 2906 | function CScriptPrecacheContext:GetValue( string_1 ) end 2907 | 2908 | --- Convars:GetBool GetBool(name) : returns the convar as a boolean flag. 2909 | ---@return table 2910 | ---@param string_1 string 2911 | function Convars:GetBool( string_1 ) end 2912 | 2913 | --- Convars:GetCommandClient GetCommandClient() : returns the player who issued this console command. 2914 | ---@return handle 2915 | function Convars:GetCommandClient( ) end 2916 | 2917 | --- Convars:GetFloat GetFloat(name) : returns the convar as a float. May return null if no such convar. 2918 | ---@return table 2919 | ---@param string_1 string 2920 | function Convars:GetFloat( string_1 ) end 2921 | 2922 | --- Convars:GetInt GetInt(name) : returns the convar as an int. May return null if no such convar. 2923 | ---@return table 2924 | ---@param string_1 string 2925 | function Convars:GetInt( string_1 ) end 2926 | 2927 | --- Convars:GetStr GetStr(name) : returns the convar as a string. May return null if no such convar. 2928 | ---@return table 2929 | ---@param string_1 string 2930 | function Convars:GetStr( string_1 ) end 2931 | 2932 | --- Convars:RegisterCommand RegisterCommand(name, fn, helpString, flags) : register a console command. 2933 | ---@return void 2934 | ---@param string_1 string 2935 | ---@param handle_2 handle 2936 | ---@param string_3 string 2937 | ---@param int_4 int 2938 | function Convars:RegisterCommand( string_1, handle_2, string_3, int_4 ) end 2939 | 2940 | --- Convars:RegisterConvar RegisterConvar(name, defaultValue, helpString, flags): register a new console variable. 2941 | ---@return void 2942 | ---@param string_1 string 2943 | ---@param string_2 string 2944 | ---@param string_3 string 2945 | ---@param int_4 int 2946 | function Convars:RegisterConvar( string_1, string_2, string_3, int_4 ) end 2947 | 2948 | --- Convars:SetBool SetBool(name, val) : sets the value of the convar to the bool. 2949 | ---@return void 2950 | ---@param string_1 string 2951 | ---@param bool_2 bool 2952 | function Convars:SetBool( string_1, bool_2 ) end 2953 | 2954 | --- Convars:SetFloat SetFloat(name, val) : sets the value of the convar to the float. 2955 | ---@return void 2956 | ---@param string_1 string 2957 | ---@param float_2 float 2958 | function Convars:SetFloat( string_1, float_2 ) end 2959 | 2960 | --- Convars:SetInt SetInt(name, val) : sets the value of the convar to the int. 2961 | ---@return void 2962 | ---@param string_1 string 2963 | ---@param int_2 int 2964 | function Convars:SetInt( string_1, int_2 ) end 2965 | 2966 | --- Convars:SetStr SetStr(name, val) : sets the value of the convar to the string. 2967 | ---@return void 2968 | ---@param string_1 string 2969 | ---@param string_2 string 2970 | function Convars:SetStr( string_1, string_2 ) end 2971 | 2972 | --- GlobalSys:CommandLineCheck CommandLineCheck(name) : returns true if the command line param was used, otherwise false. 2973 | ---@return table 2974 | ---@param string_1 string 2975 | function GlobalSys:CommandLineCheck( string_1 ) end 2976 | 2977 | --- GlobalSys:CommandLineFloat CommandLineFloat(name) : returns the command line param as a float. 2978 | ---@return table 2979 | ---@param string_1 string 2980 | ---@param float_2 float 2981 | function GlobalSys:CommandLineFloat( string_1, float_2 ) end 2982 | 2983 | --- GlobalSys:CommandLineInt CommandLineInt(name) : returns the command line param as an int. 2984 | ---@return table 2985 | ---@param string_1 string 2986 | ---@param int_2 int 2987 | function GlobalSys:CommandLineInt( string_1, int_2 ) end 2988 | 2989 | --- GlobalSys:CommandLineStr CommandLineStr(name) : returns the command line param as a string. 2990 | ---@return table 2991 | ---@param string_1 string 2992 | ---@param string_2 string 2993 | function GlobalSys:CommandLineStr( string_1, string_2 ) end 2994 | 2995 | --- SteamInfo:IsPublicUniverse Is the script connected to the public Steam universe 2996 | ---@return bool 2997 | function SteamInfo:IsPublicUniverse( ) end 2998 | -------------------------------------------------------------------------------- /vscripts/spawn_ragdoll.lua: -------------------------------------------------------------------------------- 1 | local agents = { 2 | -- BALKAN 3 | "characters/models/tm_balkan/tm_balkan_variantf.vmdl", 4 | "characters/models/tm_balkan/tm_balkan_variantg.vmdl", 5 | "characters/models/tm_balkan/tm_balkan_varianth.vmdl", 6 | "characters/models/tm_balkan/tm_balkan_varianti.vmdl", 7 | "characters/models/tm_balkan/tm_balkan_variantj.vmdl", 8 | "characters/models/tm_balkan/tm_balkan_variantk.vmdl", 9 | "characters/models/tm_balkan/tm_balkan_variantl.vmdl", 10 | 11 | -- JUMPSUIT 12 | "characters/models/tm_jumpsuit/tm_jumpsuit_varianta.vmdl", 13 | "characters/models/tm_jumpsuit/tm_jumpsuit_variantb.vmdl", 14 | "characters/models/tm_jumpsuit/tm_jumpsuit_variantc.vmdl", 15 | 16 | -- JUNGLERAIDER 17 | "characters/models/tm_jungle_raider/tm_jungle_raider_varianta.vmdl", 18 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantb.vmdl", 19 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantb2.vmdl", 20 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantc.vmdl", 21 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantd.vmdl", 22 | "characters/models/tm_jungle_raider/tm_jungle_raider_variante.vmdl", 23 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantf.vmdl", 24 | "characters/models/tm_jungle_raider/tm_jungle_raider_variantf2.vmdl", 25 | 26 | -- LEET 27 | "characters/models/tm_leet/tm_leet_varianta.vmdl", 28 | "characters/models/tm_leet/tm_leet_variantb.vmdl", 29 | "characters/models/tm_leet/tm_leet_variantc.vmdl", 30 | "characters/models/tm_leet/tm_leet_variantd.vmdl", 31 | "characters/models/tm_leet/tm_leet_variante.vmdl", 32 | "characters/models/tm_leet/tm_leet_variantf.vmdl", 33 | "characters/models/tm_leet/tm_leet_variantg.vmdl", 34 | "characters/models/tm_leet/tm_leet_varianth.vmdl", 35 | "characters/models/tm_leet/tm_leet_varianti.vmdl", 36 | "characters/models/tm_leet/tm_leet_variantj.vmdl", 37 | "characters/models/tm_leet/tm_leet_variantk.vmdl", 38 | 39 | 40 | -- PHOENIX 41 | "characters/models/tm_phoenix/tm_phoenix.vmdl", 42 | "characters/models/tm_phoenix/tm_phoenix_varianta.vmdl", 43 | "characters/models/tm_phoenix/tm_phoenix_variantb.vmdl", 44 | "characters/models/tm_phoenix/tm_phoenix_variantc.vmdl", 45 | "characters/models/tm_phoenix/tm_phoenix_variantd.vmdl", 46 | "characters/models/tm_phoenix/tm_phoenix_variantf.vmdl", 47 | "characters/models/tm_phoenix/tm_phoenix_variantg.vmdl", 48 | "characters/models/tm_phoenix/tm_phoenix_varianth.vmdl", 49 | "characters/models/tm_phoenix/tm_phoenix_varianti.vmdl", 50 | 51 | -- PHOENIX HEAVY 52 | "characters/models/tm_phoenix_heavy/tm_phoenix_heavy.vmdl", 53 | 54 | -- PROFESSIONAL 55 | "characters/models/tm_professional/tm_professional_varf.vmdl", 56 | "characters/models/tm_professional/tm_professional_varf1.vmdl", 57 | "characters/models/tm_professional/tm_professional_varf2.vmdl", 58 | "characters/models/tm_professional/tm_professional_varf3.vmdl", 59 | "characters/models/tm_professional/tm_professional_varf4.vmdl", 60 | "characters/models/tm_professional/tm_professional_varf5.vmdl", 61 | "characters/models/tm_professional/tm_professional_varg.vmdl", 62 | "characters/models/tm_professional/tm_professional_varh.vmdl", 63 | "characters/models/tm_professional/tm_professional_vari.vmdl", 64 | "characters/models/tm_professional/tm_professional_varj.vmdl", 65 | -- SWAT 66 | "characters/models/ctm_swat/ctm_swat_variante.vmdl", 67 | "characters/models/ctm_swat/ctm_swat_variantf.vmdl", 68 | "characters/models/ctm_swat/ctm_swat_varianth.vmdl", 69 | "characters/models/ctm_swat/ctm_swat_varianti.vmdl", 70 | "characters/models/ctm_swat/ctm_swat_variantj.vmdl", 71 | "characters/models/ctm_swat/ctm_swat_variantk.vmdl", 72 | -- ST6 73 | "characters/models/ctm_st6/ctm_st6_variante.vmdl", 74 | "characters/models/ctm_st6/ctm_st6_variantg.vmdl", 75 | "characters/models/ctm_st6/ctm_st6_varianti.vmdl", 76 | "characters/models/ctm_st6/ctm_st6_variantj.vmdl", 77 | "characters/models/ctm_st6/ctm_st6_variantk.vmdl", 78 | "characters/models/ctm_st6/ctm_st6_variantl.vmdl", 79 | "characters/models/ctm_st6/ctm_st6_variantm.vmdl", 80 | "characters/models/ctm_st6/ctm_st6_variantn.vmdl", 81 | -- SAS 82 | "characters/models/ctm_sas/ctm_sas.vmdl", 83 | "characters/models/ctm_sas/ctm_sas_variantf.vmdl", 84 | "characters/models/ctm_sas/ctm_sas_variantg.vmdl", 85 | --CTM_HEAVY 86 | "characters/models/ctm_heavy/ctm_heavy.vmdl", 87 | --GENDARMERIE 88 | "characters/models/ctm_gendarmerie/ctm_gendarmerie_varianta.vmdl", 89 | "characters/models/ctm_gendarmerie/ctm_gendarmerie_variantb.vmdl", 90 | "characters/models/ctm_gendarmerie/ctm_gendarmerie_variantc.vmdl", 91 | "characters/models/ctm_gendarmerie/ctm_gendarmerie_variantd.vmdl", 92 | "characters/models/ctm_gendarmerie/ctm_gendarmerie_variante.vmdl", 93 | 94 | --FBI 95 | "characters/models/ctm_fbi/ctm_fbi.vmdl", 96 | "characters/models/ctm_fbi/ctm_fbi_varianta.vmdl", 97 | "characters/models/ctm_fbi/ctm_fbi_variantb.vmdl", 98 | "characters/models/ctm_fbi/ctm_fbi_variantc.vmdl", 99 | "characters/models/ctm_fbi/ctm_fbi_variantd.vmdl", 100 | "characters/models/ctm_fbi/ctm_fbi_variante.vmdl", 101 | "characters/models/ctm_fbi/ctm_fbi_variantf.vmdl", 102 | "characters/models/ctm_fbi/ctm_fbi_variantg.vmdl", 103 | "characters/models/ctm_fbi/ctm_fbi_varianth.vmdl", 104 | 105 | --DIVER 106 | "characters/models/ctm_diver/ctm_diver_varianta.vmdl", 107 | "characters/models/ctm_diver/ctm_diver_variantb.vmdl", 108 | "characters/models/ctm_diver/ctm_diver_variantc.vmdl", 109 | } 110 | -- This script will check every 5 seconds and reapply the script if a player is active 111 | 112 | 113 | print("Starting Spawn Ragdoll Script") 114 | thisEntity:SetThink(function() 115 | 116 | GetAllPlayers() 117 | 118 | return 5 119 | end,"ReapplyWeapons",0) 120 | 121 | function GetAllPlayers() 122 | local allPlayers = Entities:FindAllByClassname("player") 123 | for k,v in pairs(allPlayers) do 124 | ReInitPlayer(v) 125 | end 126 | end 127 | 128 | function SpawnRagdoll(player) 129 | local throw = false 130 | local playerController = player:GetController() 131 | local pawn = playerController:GetPawn() 132 | local start = pawn:EyePosition() 133 | local forward = AnglesToVector(pawn:EyeAngles()) 134 | local pos 135 | if not throw then 136 | local trRag = { 137 | startpos = start, 138 | endpos = start + forward * 4096, 139 | } 140 | TraceLine(trRag) 141 | pos = trRag.pos -forward * 64 142 | pos = pos + Vector(0,0,32) 143 | else 144 | pos = start + forward* 32 145 | end 146 | local model = agents[RandomInt(1,#agents)] 147 | 148 | 149 | local rag = SpawnEntityFromTableSynchronous("prop_ragdoll",{ 150 | model = model, 151 | origin = pos, 152 | angles = pawn:EyeAngles() 153 | }) 154 | if throw then 155 | rag:ApplyAbsVelocityImpulse(forward*600) 156 | end 157 | ScriptPrintMessageCenterAll(UniqueString(model)) 158 | 159 | end 160 | function ExpTrace(player,impulse,reverse) 161 | impulse = impulse or 1200 162 | local playerController = player:GetController() 163 | local pawn = playerController:GetPawn() 164 | local start = pawn:EyePosition() 165 | local forward = AnglesToVector(pawn:EyeAngles()) 166 | local trRag = { 167 | startpos = start, 168 | endpos = start + forward * 4096, 169 | } 170 | TraceLine(trRag) 171 | 172 | local pos = trRag.pos 173 | 174 | --SEND Ragdolls FLYING 175 | local ragdollsNear = Entities:FindAllByClassnameWithin("prop_ragdoll",pos,256) 176 | 177 | for k,v in pairs(ragdollsNear) do 178 | local vec = ((v:GetAbsOrigin() + Vector(0,0,128))-pos):Normalized() 179 | vec = vec 180 | v:ApplyLocalAngularVelocityImpulse(Vector(RandomFloat(-360,360),RandomFloat(-360,360),RandomFloat(-360,360))) 181 | v:ApplyAbsVelocityImpulse(vec*600) 182 | end 183 | if not reverse then 184 | player:ApplyAbsVelocityImpulse(forward*impulse) 185 | else 186 | player:ApplyAbsVelocityImpulse(-forward*impulse) 187 | 188 | end 189 | 190 | end 191 | 192 | 193 | function ReInitPlayer(v) 194 | local player = v 195 | local children = player:GetChildren() 196 | for k,c in pairs(children) do 197 | if c:GetClassname() == "weapon_knife" then 198 | 199 | player.knife = c 200 | player:SetThink(function() 201 | --** Gets player again if they're killed 202 | if player:GetHealth() == 100 and not IsValidEntity(player.knife) then 203 | ReInitPlayer(player) 204 | else 205 | 206 | if IsValidEntity(player.knife) then 207 | 208 | local param = player.knife:GetGraphParameter("weapon_fire_primary_autoclear") 209 | if param == true then 210 | 211 | if not player.knife.spawned then 212 | SpawnRagdoll(player) 213 | player.knife.spawned = true 214 | end 215 | else 216 | player.knife.spawned = false 217 | end 218 | 219 | local param2 = player.knife:GetGraphParameter("weapon_fire_secondary_autoclear") 220 | if param2 == true then 221 | 222 | if not player.knife.spawned2 then 223 | ExpTrace(player) 224 | 225 | player.knife.spawned2 = true 226 | end 227 | else 228 | player.knife.spawned2 = false 229 | end 230 | end 231 | 232 | 233 | end 234 | if player == GetListenServerHost() then 235 | player:SetMaxHealth(1000) 236 | player:SetHealth(1000) 237 | end 238 | 239 | return FrameTime() 240 | end,"KNIFE",0) 241 | 242 | end 243 | end 244 | end 245 | 246 | 247 | -------------------------------------------------------------------------------- /vscripts/spawn_ragdoll_script.lua: -------------------------------------------------------------------------------- 1 | 2 | 3 | local logicScripts = Entities:FindAllByClassname("logic_script") 4 | for k,v in pairs(logicScripts) do 5 | UTIL_Remove(v) 6 | end 7 | local script = SpawnEntityFromTableSynchronous("logic_script",{ 8 | vscripts = "spawn_ragdoll" 9 | }) 10 | 11 | --------------------------------------------------------------------------------