Portal placement delay ?

Avatar
generalvivi
31 Posts
Posted Nov 26, 2010
Is there a command that will allow you to change how fast you can shoot the portal gun?
Advertisement
Registered users don’t see ads! Register now!
Avatar
WinstonSmith
940 Posts
Posted Nov 26, 2010
Replied 1 hour later

generalvivi wrote:
Is there a command that will allow you to change how fast you can shoot the portal gun?

As in increasing the delay between being able to fire? Or decreasing the speed of the portal projectile? The closest thing I can think of is host_timescale, but that affects the speed of the entire game.

Avatar
msleeper
4,136 Posts
Admin
Posted Nov 26, 2010
Replied 28 minutes later
If you're talking about the "reloading" speed between Portalgun shots, you should be able to change this in the weapon's script file. I don't know if you can include those changes in stand alone maps or if it has to be included in an actual "mod", but I'm assuming this is for Chell's Legend and not a stand alone map.
Avatar
generalvivi
31 Posts
Posted Nov 26, 2010
Replied 3 hours later
So I opened up the Weapon_Portalgun.txt and this is all that is in there.

// Portalgun

WeaponData
{
// Weapon data is loaded by both the Game and Client DLLs.
"printname" "#Portal_Portalgun"
"viewmodel" "models/weapons/v_portalgun.mdl"
"playermodel" "models/weapons/w_portalgun.mdl"
"anim_prefix" "portalgun"
"bucket" "0"
"bucket_position" "2"

"clip_size"           "1"
"primary_ammo"            "None"
"secondary_ammo"      "None"

"weight"          "4"
"item_flags"          "0"
"damage"          "9"

// Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
SoundData
{
    "single_shot"     "Weapon_Portalgun.fire_blue"
    "double_shot"     "Weapon_Portalgun.fire_red"

    // NPC SECTION
    "single_shot_npc" "Weapon_Portalgun.fire_blue_npc"
    "double_shot_npc" "Weapon_Portalgun.fire_red_npc"
}

// Weapon Sprite data is loaded by the Client DLL.
TextureData
{
    "weapon"
    {
            "font"        "WeaponIcons"
            "character"   "C"
    }
    "weapon_s"
    {   
            "font"        "WeaponIconsSelected"
            "character"   "C"
    }
    "ammo"
    {
            "font"        "WeaponIcons"
            "character"   "M"
    }
    "crosshair"
    {
            "font"        "Crosshairs"
            "character"   "Q"
    }
    "autoaim"
    {
            "file"        "sprites/crosshairs"
            "x"       "0"
            "y"       "48"
            "width"       "24"
            "height"  "24"
    }
}

}

I don't see anything about fire rate or delay. Unless that is in another document?

Avatar
Motanum
248 Posts
Posted Nov 27, 2010
Replied 6 hours later

generalvivi wrote:
So I opened up the Weapon_Portalgun.txt and this is all that is in there.
"ammo"
{
"font" "WeaponIcons"
"character" "M"
}
"crosshair"
{
"font" "Crosshairs"
"character" "Q"

I don't see anything about fire rate or delay. Unless that is in another document?

Hey, I did not know that Portal was related to 007!
Maybe they made MI6's curtains?

On a serious note. No I would not know how to do. But I believe that if you pakrat the file to the stand alone map. It will get loaded along only for that map, so it could work.

Avatar
Omnicoder
299 Posts
Posted Nov 27, 2010
Replied 2 hours later

Motanum wrote:
generalvivi wrote:

So I opened up the Weapon_Portalgun.txt and this is all that is in there.
"ammo"
{
"font" "WeaponIcons"
"character" "M"
}
"crosshair"
{
"font" "Crosshairs"
"character" "Q"

I don't see anything about fire rate or delay. Unless that is in another document?

Hey, I did not know that Portal was related to 007!
Maybe they made MI6's curtains?

On a serious note. No I would not know how to do. But I believe that if you pakrat the file to the stand alone map. It will get loaded along only for that map, so it could work.

There is nothing in that file about reload speed so there's no reason to pakrat anything.

Avatar
generalvivi
31 Posts
Posted Nov 27, 2010
Replied 6 hours later
So does anyone know which file I need to look at in order to change reload speed?
Avatar
Omnicoder
299 Posts
Posted Nov 27, 2010
Replied 42 minutes later
It's either in the binary or a property of the animation.
Avatar
msleeper
4,136 Posts
Admin
Posted Nov 27, 2010
Replied 1 hour later
Yeah I'm kind of shocked, I thought that stuff was in the weapon script.
Advertisement
Registered users don’t see ads! Register now!
Avatar
generalvivi
31 Posts
Posted Nov 27, 2010
Replied 18 minutes later
Ok, so I'm going to guess this is a no go then. :sad: