This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[tf2] attempting to override default projectile speed of syringes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
possibly_yaboi_mark
Junior Member
Join Date: Jul 2022
Old 10-24-2022 , 19:24   [tf2] attempting to override default projectile speed of syringes
Reply With Quote #1

i am currently attempting to override the default projectile speed of all syringes, and yes, i have tried tf2items, that didn't work.

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <entity>
#pragma newdecls required
#pragma semicolon 1

public void Hook_EntitySpawned(int entity, const char[] ClassName)
{
     if (
StrEqual(ClassName,"tf_projectile_syringe")) {
          
float velocity[3];
          
GetEntPropVector(entityProp_Data"m_vecVelocity"velocity);
          
velocity[0] *= 1.75;
          
velocity[1] *= 1.75;
          
velocity[2] *= 1.75;
          
TeleportEntity(entityNULL_VECTORNULL_VECTORvelocity);
     }


Last edited by possibly_yaboi_mark; 10-24-2022 at 22:56.
possibly_yaboi_mark is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode