AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stripper:Source Help (https://forums.alliedmods.net/showthread.php?t=319616)

Kal 11-10-2019 23:27

Stripper:Source Help
 
Hi, Im trying to modify the gravity of a trigger_gravity
Code:

modify:
{
        match:
        {
              "classname" "trigger_gravity"
              "origin" "0 -1536 6692"
        }
        insert:
        {
              "gravity" "-100"
        }
}

This is my config right now, If anyone could help that would be great!

OciXCrom 11-11-2019 08:48

Re: Stripper:Source Help
 
This is the AMXX section.

Rohanlogs 11-11-2019 12:39

Re: Stripper:Source Help
 
Quote:

Originally Posted by Kal (Post 2672601)
Hi, Im trying to modify the gravity of a trigger_gravity

Hi. Here's the correct format to modify entity properties with stripper.
Code:

modify:
{
        match:
        {
                //classname, origin, hammerid
        }
        replace:
        {
                //
        }
}


Kal 11-11-2019 14:16

Re: Stripper:Source Help
 
Quote:

Originally Posted by Rohanlogs (Post 2672649)
Hi. Here's the correct format to modify entity properties with stripper.
Code:

modify:
{
        match:
        {
                //classname, origin, hammerid
        }
        replace:
        {
                //
        }
}



Hi, this is what I have now

Code:

modify:
{
        match:
        {
                //"trigger_gravity" "0 -1536 6692" "79693"
        }
        replace:
        {
                //"gravity" "-100"
        }
}

Is this correct?

Rohanlogs 11-12-2019 05:47

Re: Stripper:Source Help
 
Spoiler

No. That's not how you match.
Just copy and paste the properties from the dump file.
The matching part might work only with hammerid, but I personally like to use classname and origin as well.
Like this:
Code:

modify:
{
        match:
        {
                "classname" "trigger_gravity"
                "origin"  "0 -1536 6692"
                "hammerid" "79693"
        }

However since I'm not an expert, I'm not sure if you can modify the gravity of entities with stripper.
Can you show me all the properties of this entity from the dump file?
What exactly are you trying to do and in which map?
Sorry if theres typos, using my phone.

Kal 11-12-2019 15:32

Re: Stripper:Source Help
 
Quote:

Originally Posted by Rohanlogs (Post 2672705)
No. That's not how you match.
Just copy and paste the properties from the dump file.
The matching part might work only with hammerid, but I personally like to use classname and origin as well.
Like this:
Code:

modify:
{
        match:
        {
                "classname" "trigger_gravity"
                "origin"  "0 -1536 6692"
                "hammerid" "79693"
        }

However since I'm not an expert, I'm not sure if you can modify the gravity of entities with stripper.
Can you show me all the properties of this entity from the dump file?
What exactly are you trying to do and in which map?
Sorry if theres typos, using my phone.



Code:

modify:
{
        match:
        {
                "classname" "trigger_gravity"
                "origin" "0 -1536 6692"
                "hammerid" "79693"
        }
        replace:
        {
                "gravity" "-100"
        }
}

Im trying to edit the gravity to fix a bug where you get stuck in the ceiling on surf_cubic.

Code:

{
"model" "*300"
"StartDisabled" "0"
"spawnflags" "4097"
"origin" "0 -1536 6692"
"gravity" "-180"
"classname" "trigger_gravity"
"hammerid" "79693"
}


Rohanlogs 11-13-2019 01:55

Re: Stripper:Source Help
 
Quote:

Originally Posted by Kal (Post 2672748)
Spoiler

That looks correct. It should change the gravity value.


All times are GMT -4. The time now is 12:42.

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