Git Product home page Git Product logo

tf2items's People

Contributors

asherkin avatar batfoxkid avatar fortytwofortytwo avatar joinedsenses avatar mikusch avatar psychonic avatar rumblefrog avatar voided avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tf2items's Issues

Question about finding the tf2 offsets

How do you find the TF2 offsets? I have been working on some plugins for a mod called Team Fortress 2 Classic and I can't find any information on it, but I need to change the offsets in the tf2items.txt so it will work on my server. Also it errors when running build.bat saying

call "\vsvars32.bat"
'"\vsvars32.bat"' is not recognized as an internal or external command,
operable program or batch file.

..\configure.py
Traceback (most recent call last):
File "configure.py", line 3, in
import ambuild.runner as runner
ModuleNotFoundError: No module named 'ambuild'

build.py
'build.py' is not recognized as an internal or external command,
operable program or batch file.

It seems like some of the files required for it to build are missing. Could you explain how to find the offsets and maybe also what I need to download to get this working?

Extention not freeing override handle during TF2Items_OnGiveNamedItem

TScriptedItemOverride *pScriptedItemOverride = GetScriptedItemOverrideFromHandle(cellOverrideHandle);

Is it intentional that the extension does not free the handle of the overridden item during TF2Items_OnGiveNamedItem ? There isn't any documentation on the intentions here. My workaround is to create a timer and free the handle:

public Action TF2Items_OnGiveNamedItem(int client, char[] classname, int weapon, Handle &override) {
	/* ... */
	override = TF2Items_CreateItem(OVERRIDE_ATTRIBUTES);
	/* ... */

	if (override) {
		CreateTimer(1.0, timerDelete, override);
		return Plugin_Changed;
	}
}

Action timerDelete(Handle timer, Handle item) {
	delete item;
}

Having issues compiling with ambuilder

Hello I am having a lot of issues compiling with ambuilder.

It seems like it is made for some old build of sourcemod. I had to include additional directories for files that moved such as:

/sourcemod/sourcepawn/include/sp_vm_types.h
/sourcemod/public/amtl/amtl/am-string.h

    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'build', 'includes'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public', 'amtl'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'public', 'amtl', 'amtl'))
    compiler['CXXINCLUDES'].append(os.path.join(AMBuild.cache['SOURCEMOD14'], 'sourcepawn', 'include'))

And also comment out "AMBuild.Include(os.path.join('buildbot', 'Versioning'), globals)".

Then smsdk_config.hpp complains about SM_VERSION not being defined.

Is this intended? Will there be any effort to get it to compile with a recent version of sourcemod?

Spy disguise weapons not updating when swapping disguises to spy from another class [TF2items Manager]

If a spy is on the other team and uses a revolver with modified attributes he will not be able to change the disguise weapon to that revolver. This also causes the weapons not to update. E.g. When disguised as a demoman and swapping disguise to spy the Grenade launcher will still render on the spy. If all of the spies weapons have modified attributes he is not able to change disguise weapons at all.

If your first disguise is a spy with the above conditions you will not be able to swap to any of the modified disguise weapons, and will only have a sapper. On some cases the disguise will fallback to a random players weapons like a rocket launcher and show as a T Pose.

This only affects spy disguises!

Steps to reproduce the behavior of the first issue:

  1. Modify any attributes of a spy weapon and let an enemy spy equip it (eg revolver)
  2. Disguise as any class except spy
  3. Swap disguise to spy

Steps to reproduce the behavior of the second issue:

  1. Modify any attributes of a spy weapon and equip it (eg revolver)
  2. Disguise as spy with an enemy spy with modified attributes

Expected behavior
Swap disguise weapons as normal, Don't render previous disguise weapons

Screenshots
grafik

Environment

  • Sourcemod 1.10.0.6502
  • Metamod 1.11.0-dev+1144
  • Ubuntu 20.04.2 LTS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.