Raised This Month: $51 Target: $400
 12% 

[REQ][TF2] Seed Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mario96
Junior Member
Join Date: Jul 2022
Old 07-25-2022 , 04:18   [REQ][TF2] Seed Plugin
Reply With Quote #1

Is there a plugin or code that translates a number to attributes 867(highseed) i am writing a plugin that makes you have custom warpaints seed and i am having trouble finding the highseed

(the lowseed is just the 32-bit version of a number) but i can't seem to find how to get the highseed, if anybody could help me that would be great

Thanks in Advance!
Mario96 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 07-25-2022 , 12:10   Re: [REQ][TF2] Seed Plugin
Reply With Quote #2

The warpaint seed is a 64-bit value; the "low seed" is the bottom 32-bits, the "high seed" is the upper 32-bits.

In SourceMod 1.11 you can use StringToInt64 to extract the high and low portions of the seed from a numeric string into an int[2], and Int64ToString to render the int[2] to a string.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
Mario96
Junior Member
Join Date: Jul 2022
Old 07-25-2022 , 14:11   Re: [REQ][TF2] Seed Plugin
Reply With Quote #3

Bro, thank you so much, you are literally the best, i am new to sourcepawn and it was driving my mind crazy, just one more thing, i am actually new to coding in general, how do i use this number for example, if someone types in chat a command with the seed value it tells him the higher and lower parts of the value

for example:
!seed xxxxx

this seed translates into: lowseed: xxx highseed: xxx

Last edited by Mario96; 07-25-2022 at 14:23.
Mario96 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 07-25-2022 , 14:52   Re: [REQ][TF2] Seed Plugin
Reply With Quote #4

Requested plugin is attached. I initially tried using the BigInt include file but that didn't work at all. This version was developed with huge assistance from PJ at the 'Macaw Masked Collectors' Discord group. Requires TF2Attributes, and maybe SourceMod v1.11.

Video of Seed Plugin:
Attached Files
File Type: sp Get Plugin or Get Source (seed.sp - 49 views - 16.6 KB)
File Type: smx seed.smx (9.7 KB, 33 views)
PC Gamer is offline
Mario96
Junior Member
Join Date: Jul 2022
Old 07-25-2022 , 15:21   Re: [REQ][TF2] Seed Plugin
Reply With Quote #5

Bro you guys helped me out so much, i am so grateful, i, i- just thank you guys, finally i can play with my friends with warpaints, you are truly the best
Mario96 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 07-25-2022 , 16:34   Re: [REQ][TF2] Seed Plugin
Reply With Quote #6

The seed plugin above allows you to input a numeric seed value that will change the color variation of the warpainted skin. Different seed numbers will give you different colored skins. However, this only works on a few warskins such as the Macaw Mask (id number 303).

If you want a plugin that gives warpainted weapons without the need of a seed consider using the '[TF2] Warpaintme' plugin created by me. Here's a link: https://forums.alliedmods.net/showthread.php?t=330830

Video of [TF2] Warpaintme Plugin:
PC Gamer is offline
Mario96
Junior Member
Join Date: Jul 2022
Old 07-26-2022 , 05:55   Re: [REQ][TF2] Seed Plugin
Reply With Quote #7

oh i was actually editing the sp file of warpaintme so that i could use tf2attributes to input the lowseed and highseed
Mario96 is offline
Mario96
Junior Member
Join Date: Jul 2022
Old 07-26-2022 , 10:13   Re: [REQ][TF2] Seed Plugin
Reply With Quote #8

honestly just 1 more question, are ther paint ids for mk2 warpaints? Because i can't seem to find them

edit: found em

102, 104-106, 109, 112-114, 112, 130, 139, 143, 144, 151, 160, 161

Last edited by Mario96; 07-26-2022 at 17:45.
Mario96 is offline
Reply



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 03:12.


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