Raised This Month: $535 Target: $400
 133% 

[tf2] attempting to override default projectile speed of syringes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
possibly_yaboi_mark
Junior Member
Join Date: Jul 2022
Old 10-23-2022 , 20:10   [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.

my current code is entered below, although if anyone could tell me how to put it in those nice looking code boxes that would be nice.

#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(entity, Prop_Data, "m_vecVelocity", velocity);
velocity[0] *= 4;
velocity[1] *= 4;
velocity[2] *= 4;
TeleportEntity(entity, NULL_VECTOR, NULL_VECTOR, velocity);
}
}
possibly_yaboi_mark is offline
zXCaptainXz
Member
Join Date: May 2017
Old 10-24-2022 , 05:29   Re: [tf2] attempting to override default projectile speed of syringes
Reply With Quote #2

Hey, you're posting in the wrong subforum, this is for AMX Mod X, this is the subforum for sourcemod https://forums.alliedmods.net/forumdisplay.php?f=107

You can surround your code with [php"][/php] (remove the " quote) in order to put it in a box.

Last edited by zXCaptainXz; 10-24-2022 at 05:33.
zXCaptainXz is offline
possibly_yaboi_mark
Junior Member
Join Date: Jul 2022
Old 10-24-2022 , 20:21   Re: [tf2] attempting to override default projectile speed of syringes
Reply With Quote #3

oh sorry about that. thanks for informing about the text formatting though!
possibly_yaboi_mark is offline
Reply


Thread Tools
Display Modes

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:52.


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