Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Search found 16 matches

by phantom
Tue Jan 02, 2024 12:47 pm
Forum: Superfighters Deluxe ScriptAPI
Topic: Converting WeaponItem to WeaponItem object
Replies: 8
Views: 2081
Gender:

Re: Converting WeaponItem to WeaponItem object

Odex64 wrote:
Sat Dec 30, 2023 1:39 pm
Ignore my previous message, you just need this line of code in your event.

Code: Select all

Game.SpawnWeaponItem(arg.WeaponItem, mutant.GetWorldPosition());
Thanks mate, this works like a charm.
But why can't I find this method listed in the api?
by phantom
Fri Dec 29, 2023 2:29 pm
Forum: Superfighters Deluxe ScriptAPI
Topic: Converting WeaponItem to WeaponItem object
Replies: 8
Views: 2081
Gender:

Re: Converting WeaponItem to WeaponItem object

Sorry for a month late reply, I tried the Odex64 method of using dictionary but it had just became a mess so I was demotivatived from that then I simply add a effect and completely remove the weapon from inventory and from world and made it look like mutant has crushed the weapon and I am happy how ...
by phantom
Mon Nov 20, 2023 2:25 pm
Forum: Superfighters Deluxe ScriptAPI
Topic: Converting WeaponItem to WeaponItem object
Replies: 8
Views: 2081
Gender:

Re: Converting WeaponItem to WeaponItem object

Well looping through the enums is a way.. but I thought there might be another way as this would run maybe a 100 or so loops when the mutant pickup a weapon I thought of this way earlier but didn't proceeded to do so. Thanks tho I can use your script :)
by phantom
Tue Nov 07, 2023 2:12 pm
Forum: Superfighters Deluxe ScriptAPI
Topic: Converting WeaponItem to WeaponItem object
Replies: 8
Views: 2081
Gender:

Converting WeaponItem to WeaponItem object

Edit to save your time: I need IObjectWeaponItem equivalent to WeaponItem I have. So I am trying to make a mutant script in which I don't want it to equip any weapon. Well take a look at this you will understand: Events.PlayerWeaponAddedActionCallback.Start((IPlayer player, PlayerWeaponAddedArg arg)...
by phantom
Wed Nov 16, 2022 2:33 pm
Forum: Custom Scripts
Topic: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates
Replies: 18
Views: 7519
Gender:

Re: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates

@Odex64 great work!

I am a self taught programmer I currently study in college so I didn't knew that you can use obj as IObjectSupplyCrate instead I used try and catch.

@Mighty Spirit the 2 I think this is the best solution for your problem.
by phantom
Fri Nov 11, 2022 2:08 pm
Forum: Custom Scripts
Topic: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates
Replies: 18
Views: 7519
Gender:

Re: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates

I think the simple workout is this, As soon as a supplycrate spawns which will obviously say default type the script will remove it and spawn a new type whatever you want with randomized weapon. https://media.tenor.com/v8S_osquXPIAAAAC/speechless-steve-harvey.gif That's .... That's actually a good ...
by phantom
Mon Nov 07, 2022 2:50 pm
Forum: Answered ScriptAPI Topics
Topic: Document effect names in scriptAPI
Replies: 7
Views: 5795
Gender:

Re: Document effect names in scriptAPI

Odex64 wrote:
Sat Nov 05, 2022 12:24 am
No, you can't.
It sucks!
I thought that too.
by phantom
Mon Nov 07, 2022 2:49 pm
Forum: Answered ScriptAPI Topics
Topic: Can you see the script's own name using ScriptAPI?
Replies: 3
Views: 1607
Gender:

Re: Can you see the script's own name using ScriptAPI?

I think then that's it mods can lock this thread.
by phantom
Mon Nov 07, 2022 2:46 pm
Forum: Custom Scripts
Topic: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates
Replies: 18
Views: 7519
Gender:

Re: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates

I think the simple workout is this,
As soon as a supplycrate spawns which will obviously say default type the script will remove it and spawn a new type whatever you want with randomized weapon.
by phantom
Sun Nov 06, 2022 2:46 pm
Forum: Custom Scripts
Topic: [REQUEST] No Throwing (script)
Replies: 5
Views: 2822
Gender:

Re: [REQUEST] No Throwing (script)

I noticed how your script doesn't return previous gun ammo or melee wpn durability in the coding. This means you can just enter throw mode anytime and get back a brand new weapon, no need to ever drop bazooka or GL again i'm guessing? Sorry, I didn't thought that I just tested it with all weapons i...
by phantom
Sun Nov 06, 2022 2:38 pm
Forum: Custom Scripts
Topic: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates
Replies: 18
Views: 7519
Gender:

Re: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates

Sorry, I can't read your entire post it's too time consuming I am saying just write in one line what kind of script you wanna create? EDIT: Ok now I get your point GetSupplyCrateType() returns default if the supply crate is generated by map triggers. But then don't use GetSupplyCrateType() and inste...
by phantom
Fri Nov 04, 2022 4:14 pm
Forum: Answered ScriptAPI Topics
Topic: Document effect names in scriptAPI
Replies: 7
Views: 5795
Gender:

Re: Document effect names in scriptAPI

Is this possible to set the effect of low hp.

That effect when you are dying your screen fades gray
by phantom
Fri Nov 04, 2022 2:38 pm
Forum: Answered ScriptAPI Topics
Topic: Can you see the script's own name using ScriptAPI?
Replies: 3
Views: 1607
Gender:

Can you see the script's own name using ScriptAPI?

Can you see the script's own name using ScriptAPI?
that's it I have nothing more to ask.
by phantom
Sun Oct 23, 2022 2:56 pm
Forum: Custom Scripts
Topic: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates
Replies: 18
Views: 7519
Gender:

Re: [REQUEST] Script for custom weapon spawn chances + Ban some SupplyCrates

There does not seem to be a way currently for the game to read what icon/logo/imagine is on the supplycrate that spawns, or else we could actually remove the one's with for example question-mark, health or knife image (aka melee). There's a way to check which type of supply crate it is, Check the S...
by phantom
Sat Oct 22, 2022 6:06 pm
Forum: Custom Scripts
Topic: [REQUEST] No Throwing (script)
Replies: 5
Views: 2822
Gender:

Re: [REQUEST] No Throwing (script)

So, do you want a custom script or not? And also that script you posted seems that it would only remove the thrown weapon but not give it back. EDIT: I modified your script and it works like a charm :) // No Throwing // By Phantom :) public void AfterStartup() { Game.ShowChatMessage("No Throwing", C...
by phantom
Sat Oct 22, 2022 5:55 pm
Forum: Custom Scripts
Topic: [REQUEST] Finishg my Tournament Script :D
Replies: 3
Views: 2763
Gender:

Re: [REQUEST] Finishg my Tournament Script :D

Hey! I am interested to make that script, I make scripts at the unofficial sfdmaps website but now I don't have any ideas of a custom script, so I would be glad to complete this challenge.

Also, I am new to this forum site so i couldn't figure out how to directly pm you @DaxOttsel