Raised This Month: $319 Target: $400
 79%   Almost there!

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: nergal
Forum: General 09-09-2021, 16:55
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Golang to SourcePawn Transpiler (v1.4 beta)

I am making an announcement that I'm now abandoning this project but the repo will stay open (as archived).
Forum: VSH / Freak Fortress 07-28-2021, 14:08
Replies: 11
Views: 5,048
Posted By nergal
Re: [SUBPLUGIN] Thruster v1.1

is this compatible with the VSH2-FF2 compatibility layer?
Forum: General 07-19-2021, 00:17
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Golang to SourcePawn Transpiler (v1.4 beta)

yes, it's possible to write a SourcePawn->Golang transpiler but what for exactly? Porting it to Golang?
Forum: Extensions 03-14-2021, 20:45
Replies: 0
Views: 1,470
Posted By nergal
[A N Y] OrdMap - Order-preserving hash table.

I have nothing against StringMap but, at certain times and in certain ways, it's inadequate.

I made OrdMap because I wanted a hash table that had the following qualities:


Must preserve...
Forum: General 02-11-2021, 17:50
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Golang to SourcePawn Transpiler (v1.4 beta)

good news, SourceGo aka Go2SourcePawn, is now in open beta at version 1.4

It now has a complete SourceMod interface file for being able to use SM's natives in a Golang-way.
SourceGo also has a...
Forum: VSH / Freak Fortress 01-15-2021, 16:10
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.10.28 Dev

update has been done.
I'd start with just using "<enum>", I don't see any point with manually numbering keys.
Forum: VSH / Freak Fortress 01-14-2021, 21:56
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.10.28 Dev

one thing you can do is to hook `OnBossCalcHealth`

function Action (const VSH2Player player, int& max_health, const int boss_count, const int red_players);
function void (const VSH2Player player,...
Forum: VSH / Freak Fortress 01-04-2021, 16:15
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.9.27 Dev

No problem, I've even added that link to the repo README :crab:
Forum: VSH / Freak Fortress 12-29-2020, 16:15
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.9.27 Dev

I'd like to give a quick update that, thx to ALOT of help from 01Pollux, the Freak Fortress 2 Compatibility Engine is now available for use as open-beta!

Now you can run your favorite FF2 bosses...
Forum: General 11-16-2020, 22:51
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Experimental Golang to SourcePawn Transpiler

After exactly a week of time gone, I have finally managed to abstract function pointers to where they appropriately break down to manual function calling API:


func main() {
CB :=...
Forum: General 11-07-2020, 18:16
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Experimental Golang to SourcePawn Transpiler

alright, with version v0.25a.
Here's a sample of a plugin that modifies the mantreads damage written in "SourceGolang" and the code it generated:


package main

import (
"sdkhooks"
)
Forum: General 11-05-2020, 17:25
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Experimental Golang to SourcePawn Transpiler

another update, v0.22A, added two types of switch statements: normal and "true" switch statements.

Normal is of course what you'd expect:

/// Original:
switch x {
case 1, 2:
case 3:...
Forum: General 11-04-2020, 23:01
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Experimental Golang to SourcePawn Transpiler

Update v0.20a. Ranged for-loops are now supported.


var clients [MAXPLAYERS+1]Entity
for index, client := range clients {
/// code;
}
Forum: General 11-03-2020, 17:26
Replies: 11
Views: 3,553
Posted By nergal
Re: SourceGo: Experimental Golang to SourcePawn Transpiler

In terms of what SourceGo is capable of, here's an example using a receiver, returning multiple values, and assigning multiple values.


type PlayerInfo struct {
Origin Vec3
Angle QAngle...
Forum: General 11-02-2020, 17:18
Replies: 11
Views: 3,553
Posted By nergal
SourceGo: Golang to SourcePawn Transpiler (v1.4 beta)

I'm happy to announce that, with the help of many SM devs, I've created an experimental Golang to SourcePawn source to source compiler aka a transpiler.

What does it do? It takes (a subset of)...
Forum: Snippets and Tutorials 09-28-2020, 13:09
Replies: 10
Views: 6,799
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

alright, put this code in your cfgmap.inc and test out how it goes:


public int GetBool(const char[] key_path, bool& b, bool simple=true) {
if( this==null ) {
return 0;
}
PackVal...
Forum: Snippets and Tutorials 09-27-2020, 18:21
Replies: 10
Views: 6,799
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

it's not bad but what would I return if there's a failure? I guess I could have it pass something like a reference to a bool and the method itself returns an int.

Another thing is that your method...
Forum: Snippets and Tutorials 09-26-2020, 18:23
Replies: 10
Views: 6,799
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

Sounds good, have it work from a number (1 and 0) or the words 'true' and 'false?
Forum: Snippets and Tutorials 09-24-2020, 14:38
Replies: 10
Views: 6,799
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

I've updated the OP with the latest code and even converted the library into an include file.
I've also provided a tutorial link on all the capabilities of ConfigMap and how to use it.
Forum: VSH / Freak Fortress 08-31-2020, 11:32
Replies: 138
Views: 51,160
Posted By nergal
Forum: Snippets and Tutorials 06-29-2020, 13:55
Replies: 10
Views: 6,799
Posted By nergal
Re: [SP] ConfigMap: StringMap & SMCParser

yes! you gotta compile it with Voice Changer. I also want to add that ConfigMap is loop-friendlier than KeyValues since all you need to do get a specific section and iterate that section, here's an...
Forum: VSH / Freak Fortress 06-04-2020, 21:00
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.6.16 Dev

that doesn't make sense, VSH2 only teleports a boss if the gamemode manager requires it OR the boss would've taken enough damage that it would kill them in one touch.
Forum: VSH / Freak Fortress 05-08-2020, 14:15
Replies: 138
Views: 51,160
Posted By nergal
Re: VS. Saxton Hale Version 2 - v2.6.16 Dev

did you restart your game and then reconnect?
Forum: Snippets and Tutorials 04-13-2020, 20:43
Replies: 5
Views: 5,099
Posted By nergal
Re: Gedit Syntax Highlighting

back with another updated version.
Special thanks to JoinedSenses for his function regex syntax
Forum: Snippets and Tutorials 04-10-2020, 19:10
Replies: 12
Views: 4,480
Posted By nergal
Re: [SNIPPET] Timers Done Easy (requires SM 1.7+)

After so many years, here's the improved version.
stock void SetPawnTimer(Function func, float thinktime = 0.1, const any[] args, const int len)
{
DataPack thinkpack = new DataPack();...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 04:29.


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