keys

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

keys

Postby ICE » Sun Aug 20, 06 3:09 pm

how would I like assign something to keys like if I were to press the zoom button using a weapon but I wont zoom ill i dunno I shoot a alternitive fire like shooting a genade.
ЛЕДImage
The recent message was not spam but was a topic warmer and the message was copyrighted for eternity!Im in czech at the moe.
User avatar
ICE
Poster
 
Posts: 155
Joined: Fri Jul 14, 06 9:40 pm
Location: UK

Postby Professor Layton » Sun Aug 20, 06 8:44 pm

I don't get what you exactly mean =\
Last edited by Professor Layton on Sun Aug 20, 06 9:18 pm, edited 1 time in total.
User avatar
Professor Layton
Forum Hero
 
Posts: 2333
Joined: Mon Apr 04, 05 3:17 pm
Location: Critical thinking is the key to success!

Postby ICE » Sun Aug 20, 06 8:46 pm

that doesnt awnser my question. :roll:
ЛЕДImage
The recent message was not spam but was a topic warmer and the message was copyrighted for eternity!Im in czech at the moe.
User avatar
ICE
Poster
 
Posts: 155
Joined: Fri Jul 14, 06 9:40 pm
Location: UK

Postby Professor Layton » Sun Aug 20, 06 8:48 pm

Then rephrase. Your question does not make much sense to me, I tried to understand it, but I didn't I reckon.
User avatar
Professor Layton
Forum Hero
 
Posts: 2333
Joined: Mon Apr 04, 05 3:17 pm
Location: Critical thinking is the key to success!

Postby Allan » Sun Aug 20, 06 9:09 pm

This may be of a bit of help, if by what you mean is make a weapon's scope do something else(Like make it change a weapons fire-speed, etc...)

Code: Select all
replication
{
   If(Role<ROLE_Authority)
      ScopeOnAltfireSettings, ScopeOffDefaultSettings;
}

simulated function PreBeginPlay()
{} // This will over-ride the PreBeginPlay defaults set out in the parent versions of this class

simulated function WeaponSelected(DeusExPlayer Player)
{
   Player=DeusExPlayer(Owner);
   if(Player!=None)
   {
      Player.ClientMessage("This weapon has 2 fire modes. Press your Scope key to switch between them.");
   }
}

simulated function RefreshScopeDisplay(DeusExPlayer player, bool bInstant, bool bScopeOn)
{
   Player=DeusExPlayer(Owner);
   if(bScopeOn && (Player !=None))
   {
      ScopeOnAltfireSettings(player);
   }
   else if (!bScopeOn)
   {
      ScopeOffDefaultSettings(player);
   }
}

Function ScopeOnAitfireSettings(deusExPlayer P)
{
   P=DeusExPlayer(Owner);
   if(P!=None)
   {
      //Put whatever shizz you want settings wise for the altfire mode
   }
}

Function ScopeOnAitfireSettings(deusExPlayer P)
{
   P=DeusExPlayer(Owner);
   if(P!=None)
   {
      //Put whatever your gun's non-altfire settings are (Can be found in defaultProperties)
   }
}


I'm not 100% if this'll work, but it's the best I can think of ATM.

edit: 1000 posties! Win-omg-pwnage!
User avatar
Allan
Alpha
 
Posts: 4545
Joined: Wed Dec 21, 05 1:41 pm
Location: Northamptonshire, England.

Postby ICE » Sun Aug 20, 06 9:25 pm

hey thx allan
ЛЕДImage
The recent message was not spam but was a topic warmer and the message was copyrighted for eternity!Im in czech at the moe.
User avatar
ICE
Poster
 
Posts: 155
Joined: Fri Jul 14, 06 9:40 pm
Location: UK

Postby clyzm » Mon Aug 21, 06 1:01 pm

Also, the animation would have to be something like Fire2, and you would have to code it so when you press left bracket key, it activates that sequence.
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby Raiiiny » Tue Sep 11, 07 2:53 am

its really simple...
just paste this above your default properties
An Change the things i highlighted in cyan
although this is the laser toggle button so you can
still use your scope :mexicanrasta:

simulated function SetMode()
{
local projectileClassHere wOOt;
local DeusExPlayer Player;
player = DeusExPlayer(Owner);

wOOt = Spawn(Class'yourmodhere.Projectileclasshere',Player,,Player.Location,Player.ViewRotation);
}

Simulated function LaserToggle()
{
SetMode();
}
Last edited by Raiiiny on Tue Sep 11, 07 3:40 am, edited 1 time in total.
Our greatest glory
is not in never falling, but in rising
every time we fall.
User avatar
Raiiiny
Wannabe
 
Posts: 117
Joined: Tue Sep 11, 07 2:39 am


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 4 guests
cron